2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-30 05:48:18 +00:00

configure will not add -O2 to CFLAGS if it is already defined to

add -O2 to the CFLAGS we pass in when PIE is being used.
This commit is contained in:
Todd C. Miller 2011-03-16 13:38:58 -04:00
parent aa29582acc
commit de0df45cc9

4
mkpkg
View File

@ -116,7 +116,7 @@ case "$osversion" in
prefix=/usr
if [ $osrelease -ge 50 ]; then
# RHEL 5 and up build pies and have audit support
export CFLAGS="$F_PIE" LDFLAGS="-pie"
export CFLAGS="-O2 $F_PIE" LDFLAGS="-pie"
configure_opts="${configure_opts}${configure_opts+$tab}--with-linux-audit"
PPVARS="${PPVARS}${PPVARS+$space}linux_audit=1.4.0"
fi
@ -140,7 +140,7 @@ case "$osversion" in
prefix=/usr
if [ $osrelease -ge 10 ]; then
# SLES 10 and higher build pies
export CFLAGS="$F_PIE" LDFLAGS="-pie"
export CFLAGS="-O2 $F_PIE" LDFLAGS="-pie"
if [ $osrelease -ge 11 ]; then
# SLES 11 and higher has SELinux
configure_opts="${configure_opts}${configure_opts+$tab}--with-selinux"