]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Use CFLAGS for icc linker options instead of LDFLAGS,
authorYang Tse <yangsita@gmail.com>
Tue, 30 Sep 2008 02:59:35 +0000 (02:59 +0000)
committerYang Tse <yangsita@gmail.com>
Tue, 30 Sep 2008 02:59:35 +0000 (02:59 +0000)
otherwise gethostbyname() is not detected.

ares/configure.ac
configure.ac

index 3b9fad3b3b28893754987053af8525c8bdddab41..9a1f1a327e9011930442181ebe6e218cbc51a86c 100644 (file)
@@ -220,7 +220,7 @@ if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
   dnl #279: controlling expression is constant
   dnl #981: operands are evaluated in unspecified order
   dnl #1469: "cc" clobber ignored
-  if test "$curl_cv_def___INTEL_COMPILER" -lt "910"; then
+  if test "$ac_cv_compiler_num" -lt "910"; then
     CPPFLAGS="$CPPFLAGS -wd 279"
   fi
   CPPFLAGS="$CPPFLAGS -wd 981,1469"
@@ -279,12 +279,12 @@ case $host in
       if test "$ac_cv_compiler_num" -ge "900" &&
         test "$ac_cv_compiler_num" -lt "1000"; then
         dnl icc 9.X specific
-        LDFLAGS="$LDFLAGS -i-dynamic"
+        CFLAGS="$CFLAGS -i-dynamic"
       fi
       #
       if test "$ac_cv_compiler_num" -ge "1000"; then
         dnl icc 10.X or later
-        LDFLAGS="$LDFLAGS -shared-intel"
+        CFLAGS="$CFLAGS -shared-intel"
       fi
       #
     fi
index 6388e770d031f42cb93dff7d609830b9f507f270..c4f2bd4d813e0c831a0b4a74df2434b83fa05415 100644 (file)
@@ -294,7 +294,7 @@ if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
   dnl #279: controlling expression is constant
   dnl #981: operands are evaluated in unspecified order
   dnl #1469: "cc" clobber ignored
-  if test "$curl_cv_def___INTEL_COMPILER" -lt "910"; then
+  if test "$ac_cv_compiler_num" -lt "910"; then
     CPPFLAGS="$CPPFLAGS -wd 279"
   fi
   CPPFLAGS="$CPPFLAGS -wd 981,1469"
@@ -353,12 +353,12 @@ case $host in
       if test "$ac_cv_compiler_num" -ge "900" &&
         test "$ac_cv_compiler_num" -lt "1000"; then
         dnl icc 9.X specific
-        LDFLAGS="$LDFLAGS -i-dynamic"
+        CFLAGS="$CFLAGS -i-dynamic"
       fi
       #
       if test "$ac_cv_compiler_num" -ge "1000"; then
         dnl icc 10.X or later
-        LDFLAGS="$LDFLAGS -shared-intel"
+        CFLAGS="$CFLAGS -shared-intel"
       fi
       #
     fi