summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-09-17 00:45:02 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-09-17 00:45:02 +0000
commit2cc3f17a26417de82ccd8f3e381f30afff78afed (patch)
treed7f7d459fdf5044380f0b3de933e4908983d9e4b /clang/lib/CodeGen/CodeGenFunction.cpp
parent80a32d62f6da7f945db221bcfda3e95f4dfb0f50 (diff)
downloadbcm5719-llvm-2cc3f17a26417de82ccd8f3e381f30afff78afed.tar.gz
bcm5719-llvm-2cc3f17a26417de82ccd8f3e381f30afff78afed.zip
Driver: Add magic handling for "reserved library names", starting with
-lstdc++. This is the best gross solution for a gross problem. This issue is that historically, GCC has add -L options to its internally library directories. This has allowed users and platforms to end up depending on the layout of GCC's internal library directories. We want to correct this mistake by eliminating that -L, but this means that existing libraries which are in the GCC lib dir won't be found. We are going to handle this by treating those -l names as "reserved", and requiring toolchains to know how to add the right full path to the reserved library. The immediately side effect of this is that users trying to use -L to find their own -lstdc++ will need to start using -nostdlib (which is a good idea anyway). Another side effect is that -stdlib=libc++ -lstdc++ will now do the "right" thing, for curious definitions of right. llvm-svn: 114144
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud