Merge topic 'hppa-bootstrap'

b22a0f15 bootstrap: improve ld flag for Linux/HPPA builds
This commit is contained in:
Brad King 2014-01-15 10:12:02 -05:00 committed by CMake Topic Stage
commit 4c7bac45ae
1 changed files with 1 additions and 4 deletions

View File

@ -739,10 +739,7 @@ if ${cmake_system_linux}; then
# avoid binutils problem with large binaries, e.g. when building CMake in debug mode # 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 # See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50230
if ${cmake_machine_parisc}; then if ${cmake_machine_parisc}; then
# if -O[s23] is given the effect is inverted, so do not use the flag then cmake_ld_flags="${LDFLAGS} -Wl,--unique=.text._*"
if [ "`echo "${CXXFLAGS}" | sed -r '/^(.* )?(-O[s234])( .*)?$/s/.*/-Os/'`" != "-Os" ]; then
cmake_ld_flags="${LDFLAGS} -Wl,--unique=.text.*"
fi
fi fi
fi fi