diff options
author | Brad King <brad.king@kitware.com> | 2013-09-25 12:33:12 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-09-25 12:33:12 (GMT) |
commit | 951a158c8a89512f52779ea29731234fa25b90e5 (patch) | |
tree | ad4dda3a721e1b038ad059f9230ea027e58e21d8 | |
parent | 5f8eefa301cf4e9d5b577112ad36b5c4bf23ba7e (diff) | |
parent | ca63bb1001dea6929e194ac15921fdeb7d434dcd (diff) | |
download | CMake-951a158c8a89512f52779ea29731234fa25b90e5.zip CMake-951a158c8a89512f52779ea29731234fa25b90e5.tar.gz CMake-951a158c8a89512f52779ea29731234fa25b90e5.tar.bz2 |
Merge topic 'hppa-bootstrap'
ca63bb1 bootstrap: try better workaround for builds on Linux/HPPA
-rwxr-xr-x | bootstrap | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -692,7 +692,10 @@ if ${cmake_system_linux}; then # avoid binutils problem with large binaries, e.g. when building CMake in debug mode # See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50230 if ${cmake_machine_parisc}; then - cmake_ld_flags="${LDFLAGS} -Wl,--unique=.text.*" + # if -O[s23] is given the effect is inverted, so do not use the flag then + if [ "`echo "${CXXFLAGS}" | sed -r '/^(.* )?(-O[s234])( .*)?$/s/.*/-Os/'`" != "-Os" ]; then + cmake_ld_flags="${LDFLAGS} -Wl,--unique=.text.*" + fi fi fi |