]> granicus.if.org Git - sudo/commitdiff
avoid the -g flag unless --with-devel was specified
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 19 Dec 2001 15:56:47 +0000 (15:56 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 19 Dec 2001 15:56:47 +0000 (15:56 +0000)
configure.in

index b257404a9aefa17e335c9a0a272e7807cab2c9e1..5acb4bb171e798b0f8317d53e38db52edb813187 100644 (file)
@@ -1058,6 +1058,13 @@ if test -z "$EGREPPROG"; then
     exit
 fi
 
+dnl
+dnl Prevent configure from adding the -g flag unless in devel mode
+dnl
+if test "$with_devel" != "yes"; then
+    ac_cv_prog_cc_g=no
+fi
+
 dnl
 dnl C compiler checks
 dnl XXX - the cross-compiler check gets false positives so we override it