mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 18:08:23 +00:00
Build PIE executable on Mac OS X 10.5 and above.
This commit is contained in:
parent
3d55aaa8be
commit
071256a838
4
mkpkg
4
mkpkg
@ -238,6 +238,10 @@ case "$osversion" in
|
|||||||
fi
|
fi
|
||||||
export CFLAGS="-O2 -g $ARCH_FLAGS $SDK_FLAGS"
|
export CFLAGS="-O2 -g $ARCH_FLAGS $SDK_FLAGS"
|
||||||
export LDFLAGS="$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
|
# Note, must indent with tabs, not spaces due to IFS trickery
|
||||||
configure_opts="--prefix=$prefix
|
configure_opts="--prefix=$prefix
|
||||||
--with-pam
|
--with-pam
|
||||||
|
Loading…
x
Reference in New Issue
Block a user