mirror of
https://github.com/nmap/nmap.git
synced 2026-01-20 21:29:06 +00:00
Add -Wall to CFLAGS when using GCC.
This commit is contained in:
5
nmap-update/configure
vendored
5
nmap-update/configure
vendored
@@ -3028,6 +3028,11 @@ else
|
||||
fi
|
||||
|
||||
|
||||
# GCC-specific flags
|
||||
if test -n "$GCC"; then
|
||||
CFLAGS="$CFLAGS -Wall"
|
||||
fi
|
||||
|
||||
|
||||
apr_found="no"
|
||||
|
||||
|
||||
@@ -12,6 +12,11 @@ AC_PROG_CC
|
||||
AC_PROG_INSTALL
|
||||
AC_PATH_TOOL([STRIP], [strip], [/bin/true])
|
||||
|
||||
# GCC-specific flags
|
||||
if test -n "$GCC"; then
|
||||
CFLAGS="$CFLAGS -Wall"
|
||||
fi
|
||||
|
||||
APR_FIND_APR(, , 1, 1)
|
||||
if test "$apr_found" = "no"; then
|
||||
AC_MSG_ERROR([libapr is required to build nmap-update.])
|
||||
|
||||
Reference in New Issue
Block a user