summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorfxlb <fx.lebail@yahoo.com>2016-11-01 14:28:25 +0100
committerFrancois-Xavier Le Bail <fx.lebail@yahoo.com>2016-11-01 20:33:19 +0100
commit4abe27840d9f4da0eb03945ee1fbe4ecba10fcc7 (patch)
treeff8b349b4e38f02437752c3827308c6b84825377 /configure
parent87dba333228b638fa7d3a60197f8ab8c82743043 (diff)
downloadtcpdump-4abe27840d9f4da0eb03945ee1fbe4ecba10fcc7.tar.gz
Compile with '-Wpedantic' in devel mode instead of '-pedantic'
Avoid 'Undefined symbol _mcount' with some Solaris compilers. The '-pedantic' option is unknown to the comiler, but by coincidence starts with a '-p' (gather performance data). When a file is compiled with '-p' but is linked without '-p', 'Undefined symbol _mcount' occurs.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure20
1 files changed, 10 insertions, 10 deletions
diff --git a/configure b/configure
index af19566a..0a0dfdc1 100755
--- a/configure
+++ b/configure
@@ -7574,20 +7574,20 @@ fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -pedantic option" >&5
-$as_echo_n "checking whether the compiler supports the -pedantic option... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wpedantic option" >&5
+$as_echo_n "checking whether the compiler supports the -Wpedantic option... " >&6; }
save_CFLAGS="$CFLAGS"
- if expr "x-pedantic" : "x-W.*" >/dev/null
+ if expr "x-Wpedantic" : "x-W.*" >/dev/null
then
- CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -pedantic"
- elif expr "x-pedantic" : "x-f.*" >/dev/null
+ CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wpedantic"
+ elif expr "x-Wpedantic" : "x-f.*" >/dev/null
then
- CFLAGS="$CFLAGS -Werror -pedantic"
- elif expr "x-pedantic" : "x-m.*" >/dev/null
+ CFLAGS="$CFLAGS -Werror -Wpedantic"
+ elif expr "x-Wpedantic" : "x-m.*" >/dev/null
then
- CFLAGS="$CFLAGS -Werror -pedantic"
+ CFLAGS="$CFLAGS -Werror -Wpedantic"
else
- CFLAGS="$CFLAGS -pedantic"
+ CFLAGS="$CFLAGS -Wpedantic"
fi
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -7605,7 +7605,7 @@ if ac_fn_c_try_compile "$LINENO"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
CFLAGS="$save_CFLAGS"
- V_CCOPT="$V_CCOPT -pedantic"
+ V_CCOPT="$V_CCOPT -Wpedantic"
else