diff options
author | David Faure <faure@kde.org> | 2007-12-17 09:40:35 +0000 |
---|---|---|
committer | David Faure <faure@kde.org> | 2007-12-17 09:40:35 +0000 |
commit | 7fa3429a382e79e7dee46e7380604f9c12fedfa1 (patch) | |
tree | dcb20cd18cc5ef3bf3c0c6c8b920816d80b11d1d | |
parent | 49d4e315f94488468ddf6e5729d1d35c48d34fe3 (diff) | |
download | extra-cmake-modules-7fa3429a382e79e7dee46e7380604f9c12fedfa1.tar.gz extra-cmake-modules-7fa3429a382e79e7dee46e7380604f9c12fedfa1.tar.bz2 |
As discussed on kde-buildsystem, add --enable-new-dtags to the linker flags on linux+gcc.
This makes ./kmyunittest.shell work as expected, i.e. it uses the locally built libs instead of the installed ones.
svn path=/trunk/KDE/kdelibs/; revision=749514
-rw-r--r-- | modules/FindKDE4Internal.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake index 26e82b61..b734129c 100644 --- a/modules/FindKDE4Internal.cmake +++ b/modules/FindKDE4Internal.cmake @@ -774,6 +774,11 @@ if (CMAKE_SYSTEM_NAME MATCHES Linux) set ( _KDE4_PLATFORM_DEFINITIONS -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_GNU_SOURCE) set ( CMAKE_SHARED_LINKER_FLAGS "-Wl,--fatal-warnings -Wl,--no-undefined -lc ${CMAKE_SHARED_LINKER_FLAGS}") set ( CMAKE_MODULE_LINKER_FLAGS "-Wl,--fatal-warnings -Wl,--no-undefined -lc ${CMAKE_MODULE_LINKER_FLAGS}") + + set ( CMAKE_SHARED_LINKER_FLAGS "-Wl,--enable-new-dtags ${CMAKE_SHARED_LINKER_FLAGS}") + set ( CMAKE_MODULE_LINKER_FLAGS "-Wl,--enable-new-dtags ${CMAKE_MODULE_LINKER_FLAGS}") + set ( CMAKE_EXE_LINKER_FLAGS "-Wl,--enable-new-dtags ${CMAKE_EXE_LINKER_FLAGS}") + # we profile... if(CMAKE_BUILD_TYPE_TOLOWER MATCHES profile) set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fprofile-arcs -ftest-coverage") |