Commit a653d9b1 authored by Sebastien Decugis's avatar Sebastien Decugis

Well this time, I hope, should be the last fix to enable compilation on Darwin systems...

parent 421da2ac
Pipeline #1666 skipped
......@@ -74,6 +74,11 @@ ENDIF( NOT BISON_EXECUTABLE OR NOT FLEX_EXECUTABLE )
# Add this to workaround an apparent bug in FreeBSD cmake (already defined in Linux)
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "-rdynamic")
# For Darwin systems
IF(APPLE)
SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "${CMAKE_SHARED_MODULE_CREATE_C_FLAGS} -flat_namespace -undefined suppress")
ENDIF(APPLE)
# Location for the include files
INCLUDE_DIRECTORIES(include)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/include)
......
......@@ -10,7 +10,6 @@ MACRO(FD_ADD_EXTENSION EXTNAME)
ADD_LIBRARY(${EXTNAME} MODULE ${ARGN})
SET_TARGET_PROPERTIES(${EXTNAME} PROPERTIES PREFIX "" )
SET_TARGET_PROPERTIES(${EXTNAME} PROPERTIES SUFFIX ".fdx" )
TARGET_LINK_LIBRARIES(${EXTNAME} libfdproto libfdcore)
ENDMACRO(FD_ADD_EXTENSION)
# Use the macro FD_EXTENSION_SUBDIR(extmacroname subdir descr default) to
......
......@@ -46,8 +46,6 @@ set( diameapsrc
FD_ADD_EXTENSION(app_diameap ${diameapsrc})
TARGET_LINK_LIBRARIES(app_diameap ${GCRYPT_LIBRARY} ${GNUTLS_LIBRARIES} ${MySQL_LIBRARY} )
####
## INSTALL section ##
......
......@@ -15,4 +15,3 @@ EAP_ADD_METHOD(eap_tls
eaptls.tab.h
)
TARGET_LINK_LIBRARIES(eap_tls ${GNUTLS_LIBRARIES})
......@@ -54,10 +54,6 @@ MACRO(RGWX_ADD_PLUGIN PLGNAME)
ADD_LIBRARY(${PLGNAME} MODULE ${ARGN})
SET_TARGET_PROPERTIES(${PLGNAME} PROPERTIES PREFIX "" )
SET_TARGET_PROPERTIES(${PLGNAME} PROPERTIES SUFFIX ".rgwx" )
#MAC OS X
IF (APPLE)
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-flat_namespace,-undefined,warning")
ENDIF(APPLE)
INSTALL(TARGETS ${PLGNAME}
LIBRARY DESTINATION ${INSTALL_EXTENSIONS_SUFFIX}
COMPONENT freeDiameter-radius-gateway)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment