[PATCH] D15455: [Driver] Let -static override the toolchain default PIC setting.

James Y Knight via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 17 07:18:34 PST 2015


jyknight added a comment.

> #define CC1_SPEC "%{!mkernel:%{!static:%{!mdynamic-no-pic:-fPIC}}}


That's sad.

> We can change this to be Darwin-specific if you prefer, but we should maintain compatibility with GCC and previous Clang releases in this behavior.


Yes, the broken behavior should be reinstated for Darwin only.


http://reviews.llvm.org/D15455





More information about the cfe-commits mailing list