Permalink
Browse files

use -flat_namespace for Mac dynamic libs

  • Loading branch information...
Juan E. Sanchez
Juan E. Sanchez committed May 5, 2017
1 parent 70dfbfe commit 804c6c9ee71a3bb11c72f78093813dae659f1941
Showing with 9 additions and 6 deletions.
  1. +3 −2 src/engine/CMakeLists.txt
  2. +3 −2 src/pycomp/CMakeLists.txt
  3. +3 −2 src/tclcomp/CMakeLists.txt
@@ -81,8 +81,9 @@ ADD_CUSTOM_COMMAND(TARGET symdiff_static
IF (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
SET_TARGET_PROPERTIES(symdiff PROPERTIES INSTALL_RPATH "\$ORIGIN/")
ENDIF (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
#IF (APPLE)
IF (APPLE)
#SET_TARGET_PROPERTIES(symdiff PROPERTIES INSTALL_RPATH "@loader_path/")
#ENDIF (APPLE)
SET_TARGET_PROPERTIES(symdiff PROPERTIES LINK_FLAGS " -flat_namespace")
ENDIF (APPLE)
@@ -26,8 +26,9 @@ ADD_CUSTOM_COMMAND(TARGET symdiff_py
IF (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
SET_TARGET_PROPERTIES(symdiff_py PROPERTIES INSTALL_RPATH "\$ORIGIN/")
ENDIF (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
#IF (APPLE)
IF (APPLE)
#SET_TARGET_PROPERTIES(symdiff_py PROPERTIES INSTALL_RPATH "@loader_path/")
#ENDIF (APPLE)
SET_TARGET_PROPERTIES(symdiff_py PROPERTIES LINK_FLAGS " -flat_namespace")
ENDIF (APPLE)
@@ -29,8 +29,9 @@ ADD_CUSTOM_COMMAND(TARGET symdiff_tcl
IF (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
SET_TARGET_PROPERTIES(symdiff_tcl PROPERTIES INSTALL_RPATH "\$ORIGIN/")
ENDIF (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
#IF (APPLE)
IF (APPLE)
#SET_TARGET_PROPERTIES(symdiff_tcl PROPERTIES INSTALL_RPATH "@loader_path/")
#ENDIF (APPLE)
SET_TARGET_PROPERTIES(symdiff_tcl PROPERTIES LINK_FLAGS " -flat_namespace")
ENDIF (APPLE)

0 comments on commit 804c6c9

Please sign in to comment.