Page MenuHomePhabricator

[cmake/AIX] Enhance cmake files to support compiling with gcc on AIX

Authored by Kai on Jan 23 2016, 6:31 AM.



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

Diff Detail

Event Timeline

Kai updated this revision to Diff 45790.Jan 23 2016, 6:31 AM
Kai retitled this revision from to [cmake/AIX] Enhance cmake files to support compiling with gcc on AIX.
Kai updated this object.
Kai added a reviewer: chandlerc.
Kai added a subscriber: llvm-commits.

Adding you as reviewers.

jmolloy requested changes to this revision.Feb 15 2016, 7:47 AM
jmolloy edited edge metadata.
jmolloy added inline comments.

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.

This revision now requires changes to proceed.Feb 15 2016, 7:47 AM
Kai abandoned this revision.Sep 17 2019, 12:33 PM

Superceded by latest additions for AIX.