Bug 139: portability fixes and documentation.
[exim.git] / src / OS / Makefile-FreeBSD
index c0f75ee78efb5d78e66e602772b7b284a84b9d97..3a2697bbab2e1009c2cd60b73fa99c6f523eda29 100644 (file)
@@ -15,6 +15,9 @@ HAVE_SA_LEN=YES
 # crypt() is in a separate library
 LIBS=-lcrypt -lm -lutil
 
 # crypt() is in a separate library
 LIBS=-lcrypt -lm -lutil
 
+# Dynamicly loaded modules need to be built with -fPIC
+CFLAGS_DYNAMIC=-shared -rdynamic -fPIC
+
 # FreeBSD always ships with Berkeley DB
 USE_DB=yes
 
 # FreeBSD always ships with Berkeley DB
 USE_DB=yes