]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Remove -w compile option in configure test.
authorMark Adler <madler@alumni.caltech.edu>
Mon, 29 Jan 2024 03:48:52 +0000 (19:48 -0800)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Wed, 7 Feb 2024 18:15:56 +0000 (19:15 +0100)
Not all C compilers have a -w option.

madler/zlib#88ec24670e9c484219392def5f2f4b5e3f839db3

configure

index 04b5f580486a2a7c885e0bbfb46f46ba4d998459..810f4ed4484791a938950585bc56b29380e223cc 100755 (executable)
--- a/configure
+++ b/configure
@@ -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