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.000000000 +0000
+++ mbuni.new/configure.ac      2010-09-11 12:31:23.000000000 +0000
@@ -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.000000000 +0000
+++ mbuni.new/mmsc/mms_billing_shell.c  2010-09-11 10:53:17.000000000 +0000
@@ -13,8 +13,10 @@
 #include <stdio.h>
 #include <stdlib.h>
 #ifndef DARWIN
+#ifndef FREEBSD
 #include <wait.h>
 #endif
+#endif
 #include <sys/wait.h>
 
 

Attachment: pgp3iIeAj4GW5.pgp
Description: PGP signature

_______________________________________________
Devel mailing list
Devel@mbuni.org
http://lists.mbuni.org/mailman/listinfo/devel

Reply via email to