]> granicus.if.org Git - curl/commitdiff
Force AIX xlc to fail and not generate object code if the source code has
authorYang Tse <yangsita@gmail.com>
Fri, 29 Feb 2008 17:13:39 +0000 (17:13 +0000)
committerYang Tse <yangsita@gmail.com>
Fri, 29 Feb 2008 17:13:39 +0000 (17:13 +0000)
compiled with errors. This behaviour is needed for autoconf macros which
rely on the ability to compile with or without errors, and is safer than
xlc's default of failing only upon severe errors.

ares/configure.ac
configure.ac

index 7edc374b7f97c205d6a8b0210cda5c1e83ba1744..0f1a16a0ccb647913984f6e3d6002785eb16a770 100644 (file)
@@ -342,6 +342,9 @@ if test "x$RECENTAIX" = "xyes"; then
          dnl the optimizer assumes that pointers can only point to
          dnl an object of the same type.
          CFLAGS="$CFLAGS -qnoansialias"
+         dnl Force AIX xlc to stop after the compilation phase, and not
+         dnl generate object code, when the source compiles with errors.
+         CFLAGS="$CFLAGS -qhalt=e"
        )
 fi
 
index 990df578d4df43f09a99235a49f1f389300106cd..5a086bebbbf32395230d7d4e202a1f84cf62fd7b 100644 (file)
@@ -1750,6 +1750,9 @@ if test "x$RECENTAIX" = "xyes"; then
          dnl the optimizer assumes that pointers can only point to
          dnl an object of the same type.
          CFLAGS="$CFLAGS -qnoansialias"
+         dnl Force AIX xlc to stop after the compilation phase, and not
+         dnl generate object code, when the source compiles with errors.
+         CFLAGS="$CFLAGS -qhalt=e"
        )