From ccb4839cd58d408c46a5eb32d45b132e7415e6d2 Mon Sep 17 00:00:00 2001 From: Stephen Roderick Date: Sun, 18 Jul 2010 14:33:00 -0400 Subject: [PATCH 1/2] cmake: Not use unknown zdefs linker flag on macosx --- rtt/CMakeLists.txt | 1 - tests/plugins/CMakeLists.txt | 1 - tests/types/CMakeLists.txt | 1 - 3 files changed, 0 insertions(+), 3 deletions(-) diff --git a/rtt/CMakeLists.txt b/rtt/CMakeLists.txt index 47370a9..74602f8 100644 --- a/rtt/CMakeLists.txt +++ b/rtt/CMakeLists.txt @@ -207,7 +207,6 @@ ENDIF ( BUILD_STATIC ) DEBUG_OUTPUT_NAME orocos-rtt-${OROCOS_TARGET} # Set accumulated compilation flags: (.so and .a) COMPILE_FLAGS "${CMAKE_CXX_FLAGS_ADD}" - LINK_FLAGS "-Wl,-zdefs" COMPILE_DEFINITIONS OROCOS_TARGET=${OROCOS_TARGET} CLEAN_DIRECT_OUTPUT 1) target_link_libraries(orocos-rtt-${OROCOS_TARGET}_dynamic ${OROCOS-RTT_LIBRARIES}) diff --git a/tests/plugins/CMakeLists.txt b/tests/plugins/CMakeLists.txt index 6c89540..6524d07 100644 --- a/tests/plugins/CMakeLists.txt +++ b/tests/plugins/CMakeLists.txt @@ -6,7 +6,6 @@ OUTPUT_NAME service_plugin DEBUG_OUTPUT_NAME service_plugin${CMAKE_DEBUG_LIG_SUFFIX} COMPILE_FLAGS "${CMAKE_CXX_FLAGS_ADD}" - LINK_FLAGS "-Wl,-zdefs" COMPILE_DEFINITIONS "${OROCOS-RTT_DEFINITIONS}" ) target_link_libraries(service_plugin orocos-rtt-${OROCOS_TARGET}_dynamic) diff --git a/tests/types/CMakeLists.txt b/tests/types/CMakeLists.txt index 0d9ab7c..2cb5021 100644 --- a/tests/types/CMakeLists.txt +++ b/tests/types/CMakeLists.txt @@ -6,7 +6,6 @@ OUTPUT_NAME typekit_plugin DEBUG_OUTPUT_NAME typekit_plugin${CMAKE_DEBUG_LIG_SUFFIX} COMPILE_FLAGS "${CMAKE_CXX_FLAGS_ADD}" - LINK_FLAGS "-Wl,-zdefs" COMPILE_DEFINITIONS "${OROCOS-RTT_DEFINITIONS}" ) target_link_libraries(typekit_plugin orocos-rtt-${OROCOS_TARGET}_dynamic) -- 1.7.1