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

Joerg Sonnenberger via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 17 10:16:24 PST 2015


On Wed, Dec 16, 2015 at 11:59:10PM +0000, Bob Wilson via cfe-commits wrote:
> 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.

Who is really affected by this? I don't care too much about obscure
Darwin hacks, but I really wonder why it isn't better to just explicitly
add -fno-PIC (e.g. when building a kernel module). It's not like that
will break on older versions of GCC or Clang.

Joerg


More information about the cfe-commits mailing list