Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 499922
Collapse All | Expand All

(-)a/CompileFlags.cmake (-1 / +1 lines)
Lines 66-70 endif () Link Here
66
# avoid binutils problem with large binaries, e.g. when building CMake in debug mode
66
# avoid binutils problem with large binaries, e.g. when building CMake in debug mode
67
# See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50230
67
# See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50230
68
if (CMAKE_SYSTEM_NAME STREQUAL Linux AND CMAKE_SYSTEM_PROCESSOR STREQUAL parisc)
68
if (CMAKE_SYSTEM_NAME STREQUAL Linux AND CMAKE_SYSTEM_PROCESSOR STREQUAL parisc)
69
  set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--unique=.text.*")
69
  set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--unique=.text._*")
70
endif ()
70
endif ()
(-)a/bootstrap (-4 / +1 lines)
Lines 692-701 if ${cmake_system_linux}; then Link Here
692
  # avoid binutils problem with large binaries, e.g. when building CMake in debug mode
692
  # avoid binutils problem with large binaries, e.g. when building CMake in debug mode
693
  # See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50230
693
  # See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50230
694
  if ${cmake_machine_parisc}; then
694
  if ${cmake_machine_parisc}; then
695
    # if -O[s23] is given the effect is inverted, so do not use the flag then
695
    cmake_ld_flags="${LDFLAGS} -Wl,--unique=.text._*"
696
    if [ "`echo "${CXXFLAGS}" | sed -r '/^(.* )?(-O[s234])( .*)?$/s/.*/-Os/'`" != "-Os" ]; then
697
      cmake_ld_flags="${LDFLAGS} -Wl,--unique=.text.*"
698
    fi
699
  fi
696
  fi
700
fi
697
fi
701
698

Return to bug 499922