mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Add -Wall to CFLAGS when using GCC.
This commit is contained in:
parent
89d52c8f4f
commit
98bb6cff31
2 changed files with 10 additions and 0 deletions
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.])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue