summaryrefslogtreecommitdiff
path: root/src/OS/Makefile-FreeBSD
diff options
context:
space:
mode:
authorPhil Pennock <pdp@spodhuis.org>2011-01-16 02:15:53 -0500
committerPhil Pennock <pdp@spodhuis.org>2011-01-16 02:15:53 -0500
commit0a34949459c8ec5f79599a458704b7b11cdbb248 (patch)
tree48cea0fdc007607882a53b1e1afd27273b0c4708 /src/OS/Makefile-FreeBSD
parent0761d44e078b0c779c92be127bb4d984c60d0320 (diff)
Bug 139: portability fixes and documentation.
Document the dynamic lookup module capability in spec.xfpt. Include a ChangeLog item. Avoid the GNU-specific "export" make(1) directive. Build the lookups Makefile using the existing framework. Build with BSD Make once more. The src/lookups/Makefile that is used at build time now has the dynamic content come from scripts/lookups-Makefile. Add CFLAGS_DYNAMIC support, which can be set in Local/Makefile. Provide defaults for Linux & FreeBSD. Ensure that build fails early if a dynamic module is requested but CFLAGS_DYNAMIC is not defined.
Diffstat (limited to 'src/OS/Makefile-FreeBSD')
-rw-r--r--src/OS/Makefile-FreeBSD3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/OS/Makefile-FreeBSD b/src/OS/Makefile-FreeBSD
index c0f75ee78..3a2697bba 100644
--- a/src/OS/Makefile-FreeBSD
+++ b/src/OS/Makefile-FreeBSD
@@ -15,6 +15,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