summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Linux-XL-CXX.cmake
Commit message (Collapse)AuthorAgeFilesLines
* XL: Fix link flags for executables on Linux with XL compilersBrad King2015-01-101-0/+1
| | | | | Use "-Wl,-export-dynamic" with XL to match the "-rdynamic" flag used with GNU-like compilers.
* Convert CMake-language commands to lower caseKitware Robot2012-08-131-1/+1
| | | | | | | | | | | | | | | | | Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code: cmake --help-command-list | grep -v "cmake version" | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | xargs -0 sed -i -f convert.sed && rm convert.sed
* Remove GNU-specific flags from Linux.cmakeBrad King2009-12-041-2/+0
| | | | | | | | We remove the shared library compile/link flags "-fPIC" and "-shared" because they are not provided by all compilers on Linux. This allows us to drop code from the Linux-XL-*.cmake files that erases the bad flags. All other supported compilers already provide their correct flags for Linux in their own platform information files.
* Drop -rdynamic from Linux build rulesBrad King2009-12-011-2/+0
| | | | | | | | | | | | | | | This is a GNU-specific option that should not be specified for all compilers on Linux. It tells the GNU compiler to pass -export-dynamic to the linker to export symbols from executables for use by plugins. Since we provide the ENABLE_EXPORTS target property to do the same thing in a cross-platform way, there is no need to pass -rdynamic always. Since the option is not useful for GNU tools and breaks other tools on Linux we simply remove it from CMAKE_SHARED_LIBRARY_LINK_<lang>_FLAGS. This also allows us to stop setting the variable in other Linux compiler files just to erase the bad flag. See issue #9985.
* Fix shared library creation flag for XL on LinuxBrad King2009-09-291-1/+1
| | | | See issue #9617.
* Fix XL C++ compiler flags on LinuxBrad King2009-09-161-0/+5
In Platform/Linux.cmake we add GNU flags as default for the platform which breaks non-GNU compilers. Later we should refactor these flag files to put compiler-specific flags only in files loaded for each compiler. Until then this commit fixes the XL C++ compiler flags on Linux by erasing the GNU flags. See issue #9469.