freeswitch/libs/portaudio.build.sh
Michael Jerris b474fafc5e Merged revision 2827-2828 from freeswitch/branches/tholo. Thanks tholo:
2827: Embed installed name of shared library on Mac OS X -- otherwise code that is linked against it will not find it later on as the relative path during build gets embedded.

2828: Make it build using Xcode on Mac OS X again


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2830 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-25 14:57:44 +00:00

29 lines
546 B
Bash
Executable File

patch <<__EOF__
--- configure.orig 2006-09-24 23:56:36.000000000 -0700
+++ configure 2006-09-24 23:57:32.000000000 -0700
@@ -1886,7 +1886,7 @@
OTHER_OBJS="pa_mac_core/pa_mac_core.o";
LIBS="-framework CoreAudio -lm";
PADLL="libportaudio.dylib";
- SHARED_FLAGS="-framework CoreAudio -dynamiclib";
+ SHARED_FLAGS="-framework CoreAudio -dynamiclib -install_name \\\$(PREFIX)/lib/\\\$(PADLL)";
;;
mingw* )
__EOF__
arch=`uname -m`
opts=""
if [ $arch = "x86_64" ] ; then
opts="-fPIC"
fi
CFLAGS=$opts ./configure $@
make
make install