]> granicus.if.org Git - sudo/commitdiff
Target Mac OS X 10.5 when building packages.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 24 Feb 2012 18:40:39 +0000 (13:40 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 24 Feb 2012 18:40:39 +0000 (13:40 -0500)
mkpkg

diff --git a/mkpkg b/mkpkg
index 757ce2e4950201dfa8b92d555a0c2f4d2e4cfc57..c1ea8ed3caf87d40da6c4ecd42ed424e6cd76566 100755 (executable)
--- a/mkpkg
+++ b/mkpkg
@@ -227,9 +227,11 @@ case "$osversion" in
                $configure_opts"
        ;;
     macos*)
-       # Build universal binaries, curently intel-only
-       export CFLAGS="-O2 -g -arch i386 -arch x86_64"
-       export LDFLAGS="-arch i386 -arch x86_64"
+       # Build universal binaries (intel-only) targetting Mac OS X 10.5
+       ARCH_FLAGS="-arch i386 -arch x86_64"
+       SDK_FLAGS="-isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5"
+       export CFLAGS="-O2 -g $ARCH_FLAGS $SDK_FLAGS"
+       export LDFLAGS="$ARCH_FLAGS $SDK_FLAGS"
        # Note, must indent with tabs, not spaces due to IFS trickery
        configure_opts="--prefix=$prefix
                --with-pam