]> granicus.if.org Git - clang/commit
PIC should not be enabled by default on Darwin with -static.
authorBob Wilson <bob.wilson@apple.com>
Fri, 18 Dec 2015 20:37:54 +0000 (20:37 +0000)
committerBob Wilson <bob.wilson@apple.com>
Fri, 18 Dec 2015 20:37:54 +0000 (20:37 +0000)
commitb94b1a2175d90bec0b32a7660fd676ef3a4e0179
tree5e6c0d332d25ae180018628111a9ab297bbad8c5
parent1f9949dbeeb0952d047238b29870b3395563c2bb
PIC should not be enabled by default on Darwin with -static.

r245667 changed -static so that it doesn't override an explicit -fPIC
option, but -static should still change the default for Darwin for -fno-PIC.
This matches longstanding GCC and Clang behavior on Darwin and changing it
would be disruptive, with no significant benefit.
http://reviews.llvm.org/D15455
rdar://problem/23811045

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@256026 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp
test/Driver/pic.c