]> granicus.if.org Git - sudo/commitdiff
Add -g to CFLAG for PIE builds.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 27 Jul 2011 16:00:24 +0000 (12:00 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 27 Jul 2011 16:00:24 +0000 (12:00 -0400)
mkpkg

diff --git a/mkpkg b/mkpkg
index 86a65b99295740649d6ec226533ffde908a5649c..8e87d9f260d7f846cbd47aba0ad9a737eadc2a8a 100755 (executable)
--- 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"