mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
configure.ac: add --mac-universal directive for OS X
On a system with all depency libs built as multi-arch binaries, this option can now be used to build fat Mach-O binaries for multiple architectures.
This commit is contained in:
parent
00d96c04dc
commit
85c5a2d749
1 changed files with 13 additions and 0 deletions
13
configure.ac
13
configure.ac
|
|
@ -169,6 +169,11 @@ AC_ARG_ENABLE([atomic-arm-memory-barrier],
|
|||
esac
|
||||
],)
|
||||
|
||||
AC_ARG_ENABLE(mac-universal,
|
||||
AS_HELP_STRING([--enable-mac-universal], [Build Mac universal binaries]),
|
||||
enable_mac_universal=$enableval, enable_mac_universal="no")
|
||||
|
||||
|
||||
AC_MSG_CHECKING([target operating system])
|
||||
case $host in
|
||||
*-*-linux*)
|
||||
|
|
@ -178,6 +183,14 @@ case $host in
|
|||
*-*-darwin*)
|
||||
AC_MSG_RESULT([darwin])
|
||||
pulse_target_os=darwin
|
||||
|
||||
if test "x$enable_mac_universal" = "xyes" ; then
|
||||
mac_version_min="-mmacosx-version-min=10.5"
|
||||
mac_arches="-arch i386 -arch x86_64"
|
||||
mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.5.sdk"
|
||||
LDFLAGS="$LDFLAGS $mac_arches $mac_sysroot $mac_version_min"
|
||||
CFLAGS="$CFLAGS $CFLAGS $mac_arches $mac_sysroot $mac_version_min"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
AC_MSG_RESULT([unknown])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue