changeset 244:63fef1e56bc4

Fix an issue for FreeBSD
author Sebastien Decugis <sdecugis@nict.go.jp>
date Fri, 02 Apr 2010 14:26:41 +0900
parents 7ccaacf467b1
children 6a71c3f3ab77
files INSTALL.FreeBSD freeDiameter/CMakeLists.txt
diffstat 2 files changed, 3 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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)
 
 
-
-
--- 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})
"Welcome to our mercurial repository"