[vcpkg-tool] Add -DPIC to pic flags on Linux#25158
[vcpkg-tool] Add -DPIC to pic flags on Linux#25158lrineau wants to merge 1 commit intomicrosoft:masterfrom
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/libtoolhas that line of code:pic_flag=" -fPIC -DPIC"That macro definition
PICcan 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
-DPICcan 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 --alland committed the result?not applicable