]> granicus.if.org Git - sudo/commitdiff
Add support for building Mac OS X packages.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 7 Feb 2012 16:50:26 +0000 (11:50 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 7 Feb 2012 16:50:26 +0000 (11:50 -0500)
--HG--
branch : 1.7

mkpkg

diff --git a/mkpkg b/mkpkg
index 2c50cfc6723be4ea0e571529281b26aeb57871db..4d1dafc36a42b37a7211d6193b5293de38686400 100755 (executable)
--- 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.