Re: [Devel] Patch to compile on FreeBSD 8.1-STABLE

2010-09-12 Thread Paul Bagyenda
applied.
On Sep 11, 2010, at 15:43, Piotr Isajew wrote:

 I needed this to compile on FreeBSD 8.1-STABLE and get mmsbox-mm1 to
 properly resolve dynamic symbols.
 mbuni_freebsd.patch___
 Devel mailing list
 Devel@mbuni.org
 http://lists.mbuni.org/mailman/listinfo/devel

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


[Devel] Patch to compile on FreeBSD 8.1-STABLE

2010-09-11 Thread Piotr Isajew
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 stdio.h
 #include stdlib.h
 #ifndef DARWIN
+#ifndef FREEBSD
 #include wait.h
 #endif
+#endif
 #include sys/wait.h
 
 


pgp3iIeAj4GW5.pgp
Description: PGP signature
___
Devel mailing list
Devel@mbuni.org
http://lists.mbuni.org/mailman/listinfo/devel