Merge topic 'hppa-bootstrap'

ca63bb1 bootstrap: try better workaround for builds on Linux/HPPA
This commit is contained in:
Brad King 2013-09-25 08:33:12 -04:00 committed by CMake Topic Stage
commit 951a158c8a
1 changed files with 4 additions and 1 deletions

View File

@ -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