Ticket #23 (closed defect: fixed)

Opened 2 years ago

Last modified 19 months ago

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

paconfig.diff (1.2 KB) - added by leland_lucius 2 years ago.

Change History

Changed 2 years ago by leland_lucius

Changed 2 years ago by rossb

  • owner changed from somebody to bjornroche

Changed 19 months ago by bjornroche

  • status changed from new to closed
  • resolution set to fixed

fixed in revision 1191.

Note: See TracTickets for help on using tickets.