-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Binary not static #37
Comments
I used |
This seems to fix my problem diff --git a/Dockerfile b/Dockerfile
index 0b1ec00..07e4d1a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -19,11 +19,7 @@ RUN apt-get update && \
curl \
file \
git \
- musl-dev \
musl-tools \
- libpq-dev \
- libssl-dev \
- pkgconf \
sudo \
xutils-dev \
&& \
I have no idea why. |
I tried again with the master branch diff --git a/Dockerfile b/Dockerfile
index 43bf2b6..be81849 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -21,9 +21,6 @@ RUN apt-get update && \
git \
musl-dev \
musl-tools \
- libpq-dev \
- libsqlite-dev \
- libssl-dev \
pkgconf \
sudo \
xutils-dev \
|
Could you please run We actually have a test case which verifies that we're using static linking on a sample executable, which I run on every release. See It's possible that your program somehow differs from the static executable in an important way. |
Test test-image work. I have two other projects which work completely fine. ldd output
|
The project has a package.sh. If you add your builder there you should be able to reproduce the problem. Currently it is using a docker container with the fix I mentioned above (removing libpq-dev, libsqlite-dev and libssl-dev) . Building it with |
I found this is related to the If I add a git2 dependency to the What I also fail to understand is why the package installation of |
So I narrowed it down to the So if |
Hah. Exporting the env variable I think it would be great to export the variable |
Can't test right now but according to the build.rs from libz-sys setting TARGET=musl should also work. Maybe that's better since it's more generic |
For anyone interested in a workaround: Use |
Hi,
for a while i was using rust-musl-builder as a git submodule. So I did not update.
I tried to update to master and now my binary is no longer static. (same with the dockerhub version)
Here is my repo https://github.com/brocode/fw
With commit
8ea04b5f166b18dfa4bd5c49c771e2598284f87f
everything works fine.The text was updated successfully, but these errors were encountered: