-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[vcpkg-tool] Add -DPIC to pic flags on Linux #25158
Conversation
Because `/usr/bin/libtool` has that line of code: ```shell pic_flag=" -fPIC -DPIC" ``` That macro definition `PIC` can trigger different assembler code, as for example in GMP assembler code.
I have tried to merge #25009 in
Do you mean that this PR will not be accepted? The upstream GMP project documents that |
@lrineau, Thanks for your pr, looks ci test failed on x64-linux triplet |
For As for
That means |
Describe the pull request
Because
/usr/bin/libtool
has that line of code:pic_flag=" -fPIC -DPIC"
That macro definition
PIC
can trigger different assembler code, as for example in GMP assembler code.*Note: I think the same bug applies to the other toolchains using
-fPIC
:but I can test only on Linux. Should I commit a similar change in all those files, and let the CI scripts and others test locally? In my opinion, I hardly see how adding
-DPIC
can harm.What does your PR fix?
Fixes [MPIR:x64-linux] build failure (static linking) #13827.
Which triplets are supported/not supported? Have you updated the CI baseline?
all
Does your PR follow the maintainer guide?
yes I think so
If you have added/updated a port: Have you run
./vcpkg x-add-version --all
and committed the result?not applicable