mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 02:46:58 +00:00
Fix CFLAGS for configure
This commit is contained in:
parent
ce1f9cdf7c
commit
8d0b48f165
@ -15,6 +15,7 @@ if test -s "`which hg`" && test -d "$srcdir/.hg"; then
|
||||
AC_MSG_NOTICE([Source directory Mercurial base revision $hgrev])
|
||||
fi
|
||||
|
||||
ORIGCFLAGS="$CFLAGS"
|
||||
# Checks for programs.
|
||||
AC_PROG_CC
|
||||
|
||||
@ -35,7 +36,7 @@ AC_DEFUN(DB_TRYADDCFLAGS,
|
||||
}])
|
||||
|
||||
# set compile flags prior to other tests
|
||||
if test -z "$OLDCFLAGS" && test "$GCC" = "yes"; then
|
||||
if test -z "$ORIGCFLAGS" && test "$GCC" = "yes"; then
|
||||
AC_MSG_NOTICE(No \$CFLAGS set... using "-Os -W -Wall" for GCC)
|
||||
CFLAGS="-Os -W -Wall"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user