I needed this to compile on FreeBSD 8.1-STABLE and get mmsbox-mm1 to
properly resolve dynamic symbols.
--- mbuni.old/configure.ac 2010-05-26 10:36:27.0 +
+++ mbuni.new/configure.ac 2010-09-11 12:31:23.0 +
@@ -85,10 +85,15 @@
CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -O4 -Wall"
LDFLAGS="$LDFLAGS -rdynamic"
;;
- *-*-openbsd* | *-*-freebsd*)
+ *-*-openbsd*)
CFLAGS="$CFLAGS -pthread"
AC_CHECK_LIB(c_r, pthread_exit, [LIBS="$LIBS -lc_r -lpthread";
pthread="yes"])
;;
+ *-*-freebsd*)
+LDFLAGS="$LDFLAGS -export-dynamic"
+CFLAGS="$CFLAGS -DFREEBSD=1 -pthread"
+AC_CHECK_LIB(c_r, pthread_exit, [LIBS="$LIBS -lc_r -lpthread";
pthread="yes"])
+;;
esac
AC_ARG_WITH(cflags,
--- mbuni.old/mmsc/mms_billing_shell.c 2010-01-25 09:40:12.0 +
+++ mbuni.new/mmsc/mms_billing_shell.c 2010-09-11 10:53:17.0 +
@@ -13,8 +13,10 @@
#include
#include
#ifndef DARWIN
+#ifndef FREEBSD
#include
#endif
+#endif
#include
pgp3iIeAj4GW5.pgp
Description: PGP signature
___
Devel mailing list
Devel@mbuni.org
http://lists.mbuni.org/mailman/listinfo/devel