summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorRolf Eike Beer <kde@opensource.sf-tec.de>2014-01-14 23:16:45 +0100
committerBrad King <brad.king@kitware.com>2014-01-15 10:06:07 -0500
commitb22a0f15de36d7b69f136b75e091adca145e0251 (patch)
tree34b988eb665b3095ddba93a650e59d765657adbf /bootstrap
parentd5639044d39c288a61f079e176e98ae41280b01e (diff)
downloadcmake-b22a0f15de36d7b69f136b75e091adca145e0251.tar.gz
bootstrap: improve ld flag for Linux/HPPA builds
Follow up commit ca63bb10 (bootstrap: try better workaround for builds on Linux/HPPA, 2013-09-12) with an improved ld flag. Suggested-by: Guy Martin
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap5
1 files changed, 1 insertions, 4 deletions
diff --git a/bootstrap b/bootstrap
index fcab0cf4fc..c0a3e3bc53 100755
--- a/bootstrap
+++ b/bootstrap
@@ -739,10 +739,7 @@ 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
- # 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
+ cmake_ld_flags="${LDFLAGS} -Wl,--unique=.text._*"
fi
fi