Remove -w compile option in configure test.

Not all C compilers have a -w option.

madler/zlib#88ec24670e9c484219392def5f2f4b5e3f839db3
This commit is contained in:
Mark Adler 2024-01-28 19:48:52 -08:00 committed by Hans Kristian Rosbach
parent d48ac341e2
commit 13a775881a

6
configure vendored
View File

@ -597,7 +597,7 @@ EOF
if test $shared -eq 1; then
printf "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 $LDSHAREDFLAGS $LDFLAGS -o $test$shared_ext $test.o $LDSHAREDLIBC; then
echo "Building shared library $SHAREDTARGET with $CC." | tee -a configure.log
elif test -z "$old_cc" -a -z "$old_cflags"; then
@ -1580,11 +1580,11 @@ case "${ARCH}" in
cat > $test.c << EOF
int main() { return 0; }
EOF
if try $CC -w -c $SFLAGS $test.c -mfloat-abi=softfp &&
if try $CC -c $SFLAGS $test.c -mfloat-abi=softfp &&
try $LDSHARED $LDSHAREDFLAGS $LDFLAGS -o $test$shared_ext $test.o $LDSHAREDLIBC; then
floatabi="-mfloat-abi=softfp"
else
if try $CC -w -c $SFLAGS $test.c -mfloat-abi=hard &&
if try $CC -c $SFLAGS $test.c -mfloat-abi=hard &&
try $LDSHARED $LDSHAREDFLAGS $LDFLAGS -o $test$shared_ext $test.o $LDSHAREDLIBC; then
floatabi="-mfloat-abi=hard"
fi