summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-09-25 08:33:12 -0400
committerCMake Topic Stage <kwrobot@kitware.com>2013-09-25 08:33:12 -0400
commit951a158c8a89512f52779ea29731234fa25b90e5 (patch)
treead4dda3a721e1b038ad059f9230ea027e58e21d8
parent5f8eefa301cf4e9d5b577112ad36b5c4bf23ba7e (diff)
parentca63bb1001dea6929e194ac15921fdeb7d434dcd (diff)
downloadcmake-951a158c8a89512f52779ea29731234fa25b90e5.tar.gz
Merge topic 'hppa-bootstrap'
ca63bb1 bootstrap: try better workaround for builds on Linux/HPPA
-rwxr-xr-xbootstrap5
1 files changed, 4 insertions, 1 deletions
diff --git a/bootstrap b/bootstrap
index fb4a0a0544..9784d5d4e7 100755
--- a/bootstrap
+++ b/bootstrap
@@ -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