summaryrefslogtreecommitdiffstats
path: root/CompileFlags.cmake
diff options
context:
space:
mode:
authorGuy Martin <gmsoft@tuxicoman.be>2014-01-16 08:26:30 (GMT)
committerBrad King <brad.king@kitware.com>2014-01-17 14:23:31 (GMT)
commit8f2c2ccb0b29f69f3842f09db100c489e8de1581 (patch)
treea353b2665b607bfce130b07e45a62ab1215be7eb /CompileFlags.cmake
parent0d2318dedd4c80a85b3b3e337148a9e4f7629549 (diff)
downloadCMake-8f2c2ccb0b29f69f3842f09db100c489e8de1581.zip
CMake-8f2c2ccb0b29f69f3842f09db100c489e8de1581.tar.gz
CMake-8f2c2ccb0b29f69f3842f09db100c489e8de1581.tar.bz2
Improve ld flags for CMake itself on Linux/HPPA
Workaround binutils bug by only marking unique section starting by ".text._". This adds the HPPA workaround improved in commit b22a0f15 (bootstrap: improve ld flag for Linux/HPPA builds, 2014-01-14) not only to the bootstrap, but also to the normal build.
Diffstat (limited to 'CompileFlags.cmake')
-rw-r--r--CompileFlags.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/CompileFlags.cmake b/CompileFlags.cmake
index 20f5dec..24ac58d 100644
--- a/CompileFlags.cmake
+++ b/CompileFlags.cmake
@@ -66,5 +66,5 @@ endif ()
# 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_SYSTEM_NAME STREQUAL Linux AND CMAKE_SYSTEM_PROCESSOR STREQUAL parisc)
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--unique=.text.*")
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--unique=.text._*")
endif ()