On Wed, Sep 24, 2014 at 8:33 AM, Albert Graef <aggr...@gmail.com> wrote:
> Or should I commit my changes to the Makefiles? (There's obviously some
> option in the c++ link command still missing for building universal
> binaries, though.)
>
Just adding $(ARCHFLAGS) to the c++ linker command does the trick.
Corrected diffs attached.
Is it ok to commit this? I don't really see why anyone would want to use an
archaic tool like Xcode's libtool to link dylibs when the system compiler
does the job just fine. Is there any reason for that?
Albert
--
Dr. Albert Gr"af
Computer Music Research Group, JGU Mainz, Germany
Email: aggr...@gmail.com
WWW: https://plus.google.com/+AlbertGraef
diff --git a/architecture/httpdlib/src/Makefile
b/architecture/httpdlib/src/Makefile
index 39475dd..d21d02a 100644
--- a/architecture/httpdlib/src/Makefile
+++ b/architecture/httpdlib/src/Makefile
@@ -30,7 +30,7 @@ dynamic : ../libHTTPDFaust.$(LIB_EXT)
ranlib $@
../libHTTPDFaust.dylib : $(objects)
- libtool -dynamic $(objects) -lc -lstdc++ `pkg-config --libs
libmicrohttpd` -macosx_version_min 10.6 -install_name
/usr/local/lib/faust/libHTTPDFaust.dylib -o $@
+ c++ -dynamiclib $(ARCHFLAGS) $(objects) `pkg-config --libs
libmicrohttpd` -install_name /usr/local/lib/faust/libHTTPDFaust.dylib -o $@
../libHTTPDFaust.so : $(objects)
gcc -shared -fPIC -o $@ $(objects)
diff --git a/compiler/Makefile.unix b/compiler/Makefile.unix
index d2acee8..4157e3c 100755
--- a/compiler/Makefile.unix
+++ b/compiler/Makefile.unix
@@ -136,7 +136,7 @@ ifeq ($(system), Darwin)
libtool $(LIBFLAGS) $(objects) libmain.o global.o -static -o $@
libfaust.dylib : $(objects) libmain.o global.o
- libtool -dynamic $(LIBFLAGS) $(objects) libmain.o global.o
`$(LLVM_CONFIG) --ldflags` $(LLVM_STATIC_LIBS) -ldl -lcrypto -lstdc++
-macosx_version_min 10.6 -install_name /usr/local/lib/faust/libfaust.dylib -o
libfaust.dylib
+ c++ -dynamiclib $(ARCHFLAGS) $(LIBFLAGS) $(objects) libmain.o global.o
`$(LLVM_CONFIG) --ldflags` $(LLVM_STATIC_LIBS) -ldl -lcrypto -install_name
/usr/local/lib/faust/libfaust.dylib -o libfaust.dylib
else
libfaust.a : $(objects) libmain.o global.o
ar cq $@ $(objects) libmain.o global.o
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Faudiostream-devel mailing list
Faudiostream-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-devel