-
Notifications
You must be signed in to change notification settings - Fork 204
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
Building with -extldflags=-static #339
Comments
@Janso123 did you manage to solve it? I have the same issue |
@AttilaTheFun @tonimelisma have you guys been able to build a static go binary with libvips?
|
Hey @sonu27 I've never tried it personally. |
Same issue. |
The same issue |
Here is my Dockerfile:
Without options |
Did you try with try this one: #376 (comment) |
Yes. It's seems that static build is impossible (Or some magic should happen). Without static flag everything is fine. Here is my final Docker file (build is working on MacOS Sonoma 14.1.1 with M1 and also on Ubuntu):
|
same issue on windows native building, it worked on libvips-8.10, but can not worked on 8.14. |
Hi,
Is there an option to build it with a static flag?
That's my Dockerfile and it core-dumps on me or throws linker error
`FROM golang:alpine as builder
RUN apk add musl-dev vips-dev gcc
WORKDIR /src
COPY . .
RUN go build -o /bin/app --ldflags '-linkmode external -extldflags=-static' . `
The text was updated successfully, but these errors were encountered: