mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mingw-cross-env-list] gSoap on FreeBSD and OSX


From: Tony Theodore
Subject: [Mingw-cross-env-list] gSoap on FreeBSD and OSX
Date: Tue, 26 Jan 2010 17:46:36 +1100

FreeBSD requires bison (pkg_add -r bison) to build gsoap successfully.
The readme indicates yacc should work also, but I couldn't figure it
out, and bison isn't an unreasonable pre-requisite.

On OSX, the build fails with a "Malformed archive" error (log
attached). This seems to be caused by using the native ar instead of
the cross-ar. There's no reference to ar in configure (no
ac_cv_prog_ar or AR) so the following change:

diff -r 14708edd30e9 src/gsoap.mk
--- a/src/gsoap.mk      Sat Jan 23 22:24:00 2010 +0100
+++ b/src/gsoap.mk      Tue Jan 26 16:47:17 2010 +1100
@@ -55,7 +55,7 @@
     ln -s '$(PREFIX)/bin/$(TARGET)-soapcpp2' '$(1)'/gsoap/src/soapcpp2

     # Parallel bulds can fail
-    $(MAKE) -C '$(1)' -j 1
+    $(MAKE) -C '$(1)' -j 1 AR=$(TARGET)-ar

     $(MAKE) -C '$(1)' -j 1 install
     # Apparently there is a tradition of compiling gsoap source files
into applications.

allows the build to complete, but I'm not sure why this is needed when
FreeBSD (and Ubuntu, but I can't check the log right now) seem to have
no problems using the native ar.

Any thoughts?

Tony

Attachment: gsoap
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]