From: Todd C. Miller Date: Fri, 24 Feb 2012 18:40:39 +0000 (-0500) Subject: Target Mac OS X 10.5 when building packages. X-Git-Tag: SUDO_1_8_4p2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c6c500676fc95edba59238a4f5485a847b84709;p=sudo Target Mac OS X 10.5 when building packages. --HG-- branch : 1.8 --- diff --git a/mkpkg b/mkpkg index 757ce2e49..c1ea8ed3c 100755 --- 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