# HG changeset patch # User Sebastien Decugis # Date 1270186001 -32400 # Node ID 63fef1e56bc46db5f91678379e472ec8b7d2c867 # Parent 7ccaacf467b129aa9c5e5b2ab084164911483f8e Fix an issue for FreeBSD diff -r 7ccaacf467b1 -r 63fef1e56bc4 INSTALL.FreeBSD --- a/INSTALL.FreeBSD Tue Mar 30 14:53:19 2010 +0900 +++ b/INSTALL.FreeBSD Fri Apr 02 14:26:41 2010 +0900 @@ -54,12 +54,5 @@ This function will prevent the build of the tests, it needs to be fixed (TODO) Workaround: use -DSKIP_TESTS:BOOL=ON -*) Extensions loading: - It seems the loader in freeBSD does not make symbols globals as in Linux, this needs - more investigation. Do not load any extension for now (quite useless...) - http://httpd.apache.org/docs/1.3/dso.html describes the situation - http://people.redhat.com/drepper/dsohowto.pdf (I must read to understand better) - - diff -r 7ccaacf467b1 -r 63fef1e56bc4 freeDiameter/CMakeLists.txt --- a/freeDiameter/CMakeLists.txt Tue Mar 30 14:53:19 2010 +0900 +++ b/freeDiameter/CMakeLists.txt Fri Apr 02 14:26:41 2010 +0900 @@ -56,6 +56,9 @@ # Building the executable ADD_EXECUTABLE(freeDiameterd ${FD_COMMON_SRC} ${FD_COMMON_GEN_SRC} main.c) +# Add this to workaround an apparent bug in FreeBSD cmake (already defined in Linux) +SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "-rdynamic") + # The link command LINK_DIRECTORIES(${CURRENT_BINARY_DIR}/../libfreeDiameter) TARGET_LINK_LIBRARIES(freeDiameterd libfreeDiameter ${FD_LIBS})