Skip to content

Commit

Permalink
Remove -w compile option in configure test.
Browse files Browse the repository at this point in the history
Not all C compilers have a -w option.
  • Loading branch information
madler committed Jan 21, 2024
1 parent 9404df5 commit 88ec246
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ EOF
if test $shared -eq 1; then
echo Checking for shared library support... | tee -a configure.log
# we must test in two steps (cc then ld), required at least on SunOS 4.x
if try $CC -w -c $SFLAGS $test.c &&
if try $CC -c $SFLAGS $test.c &&
try $LDSHARED $SFLAGS -o $test$shared_ext $test.o; then
echo Building shared library $SHAREDLIBV with $CC. | tee -a configure.log
elif test -z "$old_cc" -a -z "$old_cflags"; then
Expand Down

0 comments on commit 88ec246

Please sign in to comment.