From 8ebf7a95cf53b2908e70ede5c2980bab6b7e17e5 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 27 Jul 2011 12:00:24 -0400 Subject: [PATCH] Add -g to CFLAG for PIE builds. --- mkpkg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mkpkg b/mkpkg index 86a65b992..8e87d9f26 100755 --- a/mkpkg +++ b/mkpkg @@ -124,7 +124,7 @@ case "$osversion" in if [ $osrelease -ge 50 ]; then # RHEL 5 and up build pies, have audit support and use a # separate PAM config file for "sudo -i". - export CFLAGS="-O2 $F_PIE" LDFLAGS="-pie" + export CFLAGS="-O2 -g $F_PIE" LDFLAGS="-pie" configure_opts="${configure_opts}${configure_opts+$tab}--with-linux-audit" configure_opts="${configure_opts}${configure_opts+$tab}--with-pam-login" PPVARS="${PPVARS}${PPVARS+$space}linux_audit=1.4.0" @@ -148,7 +148,7 @@ case "$osversion" in prefix=/usr if [ $osrelease -ge 10 ]; then # SLES 10 and higher build pies - export CFLAGS="-O2 $F_PIE" LDFLAGS="-pie" + export CFLAGS="-O2 -g $F_PIE" LDFLAGS="-pie" if [ $osrelease -ge 11 ]; then # SLES 11 and higher has SELinux configure_opts="${configure_opts}${configure_opts+$tab}--with-selinux" -- 2.50.0