summaryrefslogtreecommitdiffstats
path: root/llvm/examples/ModuleMaker
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2013-07-31 00:37:07 +0000
committerChandler Carruth <chandlerc@gmail.com>2013-07-31 00:37:07 +0000
commit7f8042c8f3b1cfda2c4576888b54e06a701512e6 (patch)
tree7e43886492dfd7fd0c75ec4b0feddc045fa14781 /llvm/examples/ModuleMaker
parent629ff3628ae4e7591a918541597b60cfaf936592 (diff)
downloadbcm5719-llvm-7f8042c8f3b1cfda2c4576888b54e06a701512e6.tar.gz
bcm5719-llvm-7f8042c8f3b1cfda2c4576888b54e06a701512e6.zip
Find a better compromise with the default library search paths used by
Clang when linking and using a GCC installation from a GCC cross-compiler. This was desired already by two special case platforms (Android and Mips), and turns out to be generally (if frustratingly) true. I've added a substantial comment to the code clarifying the underlying assumptions of doing actual cross compiles with Clang (or GCC for that matter!) and help avoid further confusion here. The end result is to realize that fully general form of PR12478 cannot be resolved while we support existing cross-compiling GCC toolchains, and linking with them (namely, linking against their libgcc and libstdc++ installs). GCC installs these target libraries under a target-specific prefix but one that may not be available within the actual sysroot in use. When linking in this world, GCC works and Clang should as well, but caveat emptor: DSOs from this tree must be replicated and rpath-fixed to be found at runtime within the sysroot. I've extended the cross compile test cases to cover these issues by pointing them at a sysroot and actually checking the library search paths. llvm-svn: 187466
Diffstat (limited to 'llvm/examples/ModuleMaker')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud