This PR allows compiling LLVM on AIX using gcc. Additions are:
- Pass -allow-shlib-undefined to linker
- Export functions with -Wl,-bE:
- Do not pass -O3 and -z defs to linker
- Use -bgc to garbage collect unused code sections
Paths
| Differential D16506
[cmake/AIX] Enhance cmake files to support compiling with gcc on AIX AbandonedPublic Authored by Kai on Jan 23 2016, 6:31 AM.
Details
Diff Detail Event Timelinejmolloy edited edge metadata. jmolloy added inline comments.
This revision now requires changes to proceed.Feb 15 2016, 7:47 AM
Revision Contents
Diff 45790 CMakeLists.txt
cmake/modules/AddLLVM.cmake
cmake/modules/HandleLLVMOptions.cmake
|
This doesn't match your description. This should mean that AIX does NOT set -Wl,-allow-shlib-undefined, but you said above you wanted -allow-shlib-undefined to be set.
This makes me suspect that CMake is not interpreting your regex correctly.