Revision: 7234
http://svn.sourceforge.net/mahogany/?rev=7234&view=rev
Author: vadz
Date: 2007-04-03 08:02:46 -0700 (Tue, 03 Apr 2007)
Log Message:
-----------
build dspam libraries with -fPIC, otherwise they can't be linked into a
dynamically loadable DspamFilter module
Modified Paths:
--------------
trunk/M/lib/dspam/Makefile.M
Modified: trunk/M/lib/dspam/Makefile.M
===================================================================
--- trunk/M/lib/dspam/Makefile.M 2007-04-03 15:02:16 UTC (rev 7233)
+++ trunk/M/lib/dspam/Makefile.M 2007-04-03 15:02:46 UTC (rev 7234)
@@ -9,16 +9,25 @@
# Licence: M license
###############################################################################
+include ../../makeopts
+
LIBDSPAM=src/.libs/libdspam.a
DRIVER=src/.libs/libhash_drv.a
MAKEFILE_DSPAM=Makefile
all: $(LIBDSPAM) $(DRIVER)
+# explanation of configure arguments:
+# --with-delivery-agent is needed because dspam can't always detect delivery
+# agent automatically, as we don't use it anyhow just choose a dummy one
+#
+# --disable-shared is needed because we want to link everything statically
+# into our DspamFilter.so module and SHARED_CFLAGS is needed because it
+# contains -fPIC when building the modules dynamically and we have to
+# build all code linked into a DSO with -fPIC
$(MAKEFILE_DSPAM): .src/$(MAKEFILE_DSPAM).in
- @# dspam can't always detect delivery agent automatically, as we don't
- @# use it anyhow just choose a dummy one
- .src/configure --disable-shared --with-delivery-agent=/bin/false -C
+ .src/configure CFLAGS=$(SHARED_CFLAGS) --disable-shared \
+ --with-delivery-agent=/bin/false -C
$(LIBDSPAM) $(DRIVER): $(MAKEFILE_DSPAM)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates