2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 09:57:41 +00:00

Build PIE executable on Mac OS X 10.5 and above.

This commit is contained in:
Todd C. Miller 2012-05-15 12:08:22 -04:00
parent 3d55aaa8be
commit 071256a838

4
mkpkg
View File

@ -238,6 +238,10 @@ case "$osversion" in
fi
export CFLAGS="-O2 -g $ARCH_FLAGS $SDK_FLAGS"
export LDFLAGS="$ARCH_FLAGS $SDK_FLAGS"
if [ $osrelease -ge 105 ]; then
CFLAGS="$CFLAGS $F_PIE"
LDFLAGS="$LDFLAGS -Wl,-pie"
fi
# Note, must indent with tabs, not spaces due to IFS trickery
configure_opts="--prefix=$prefix
--with-pam