From: Todd C. Miller Date: Tue, 7 Feb 2012 16:50:26 +0000 (-0500) Subject: Add support for building Mac OS X packages. X-Git-Tag: SUDO_1_7_9~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2265544b77315592af063ccbc6c86daf66a853a1;p=sudo Add support for building Mac OS X packages. --HG-- branch : 1.7 --- diff --git a/mkpkg b/mkpkg index 2c50cfc67..4d1dafc36 100755 --- a/mkpkg +++ b/mkpkg @@ -226,6 +226,23 @@ case "$osversion" in --with-secure-path=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin $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" + # Note, must indent with tabs, not spaces due to IFS trickery + configure_opts="--prefix=$prefix + --with-pam + --without-tty-tickets + --enable-zlib=system + --with-ldap + --with-insults=disabled + --with-logging=syslog + --with-logfac=authpriv + --with-editor=/usr/bin/vim + --with-env-editor + $configure_opts" + ;; *) # For Solaris, add project support and use let configure choose zlib. # For all others, use the builtin zlib.