Ticket #23 (closed defect: fixed)
Fix Mac build and add universal binary support
| Reported by: | leland_lucius | Owned by: | bjornroche |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | build-systems | Version: | 2.0 |
| Keywords: | Cc: |
Description
This is the same patch I posted to the list on Sept. 9th. I just wanted to put it here as well so it doesn't get lost.
--- orig/configure.in 2006-09-04 23:37:11.000000000 -0500
+++ pa2/configure.in 2006-09-04 23:31:18.000000000 -0500
@@ -136,10 +136,11 @@
dnl Mac OS X configuration
AC_DEFINE(PA_USE_COREAUDIO)
- OTHER_OBJS="src/os/mac_osx/pa_mac_hostapis.o src/os/unix/pa_unix_util.o src/hostapi/coreaudio/pa_mac_core.o";
+ CFLAGS="$CFLAGS -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.3";
+ OTHER_OBJS="src/os/mac_osx/pa_mac_hostapis.o src/os/unix/pa_unix_util.o src/hostapi/coreaudio/pa_mac_core.o src/hostapi/coreaudio/pa_mac_core_blocking.o src/hostapi/coreaudio/pa_mac_core_utilities.o src/hostapi/coreaudio/ringbuffer.o";
LIBS="-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon";
PADLL="libportaudio.dylib";
- SHARED_FLAGS="-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon -dynamiclib";
+ SHARED_FLAGS="-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon -dynamiclib -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.3";
if [[ $with_macapi = "asio" ]] ; then
if [[ $with_asiodir ]] ; then
ASIODIR="$with_asiodir";
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
