Merge branch 'experimental_ocsp'
[exim.git] / src / OS / Makefile-FreeBSD
index c0f75ee78efb5d78e66e602772b7b284a84b9d97..30e383c44abd72c52b2efe4e3b0c65a9f408630f 100644 (file)
@@ -1,5 +1,3 @@
-# $Cambridge: exim/src/OS/Makefile-FreeBSD,v 1.6 2009/11/19 18:58:44 nm4 Exp $
-
 # Exim: OS-specific make file for FreeBSD
 # There's no setting of CFLAGS here, to allow the system default
 # for "make" to be the default.
@@ -15,6 +13,9 @@ HAVE_SA_LEN=YES
 # 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