mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-28 01:59:49 +00:00
2003-01-05 Yoshinori K. Okuji <okuji@enbug.org>
* configure.in (CFLAGS): When the default CFLAGS is used, eliminate -O2 and -g from CFLAGS, because Autoconf may automatically set CFLAGS to them.
This commit is contained in:
1 parent
53673d9532
commit
e60b85f661
4 files changed
+13
-2
No files matched your search
@@ -2917,7 +2917,8 @@ fi
|
||||
# optimization flags
|
||||
if test "x$ac_cv_c_compiler_gnu" = xyes; then
|
||||
if test "x$default_CFLAGS" = xyes; then
|
||||
CFLAGS="$CFLAGS -g"
|
||||
# Autoconf may set CFLAGS to -O2 and/or -g. So eliminate them.
|
||||
CFLAGS="`echo $CFLAGS | sed -e 's/-g//g' -e 's/-O[0-9]/g'` -g"
|
||||
# If the user specify the directory for binutils, add the option `-B'.
|
||||
if test "x$with_binutils" != x; then
|
||||
CFLAGS="-B$with_binutils/ $CFLAGS"
|
||||
|
||||
Reference in new issue
Block a user