]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3151: squid_kerb_auth: use autoconf LIBS instead of FLAGS for library linkage
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 13 Feb 2011 10:54:10 +0000 (23:54 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 13 Feb 2011 10:54:10 +0000 (23:54 +1300)
Older gcc accept library -l details in several wrong places.
gcc 4.5 will fail to build if they are not in the right section.

helpers/negotiate_auth/squid_kerb_auth/configure.ac

index e2bbf2f0f2177b6f43a8c93de21875b1e801c9c8..e78f61e3313f668c37a43568331c02ea341a5740 100644 (file)
@@ -93,7 +93,7 @@ check_mit() {
                        else
                          ac_gssapi_libs=`krb5-config --libs gssapi 2>/dev/null`
                          if test "x$ac_gssapi_libs" != "x" ; then
-                           LDFLAGS="$LDFLAGS $ac_gssapi_libs"
+                           LIBS="$LIBS $ac_gssapi_libs"
                          else
                            for lib in $ac_gss_libs; do
                              AC_CHECK_LIB($lib,main)
@@ -117,7 +117,7 @@ check_mit() {
                      fi
                      ac_gssapi_libs=`krb5-config --libs gssapi 2>/dev/null`
                      if test "x$ac_gssapi_libs" != "x" ; then
-                         LDFLAGS="$LDFLAGS $ac_gssapi_libs"
+                         LIBS="$LIBS $ac_gssapi_libs"
                      else
                          for lib in $ac_gss_libs; do
                             AC_CHECK_LIB($lib,main)
@@ -171,7 +171,7 @@ check_heimdal(){
                              ac_libdir=`echo $ac_gssapi_libs | sed -e 's/.*-L//' | sed -e 's/ .*//'`  
                              LDFLAGS="$LDFLAGS $w_flag$ac_libdir$w_flag_2"
                            fi
-                           LDFLAGS="$LDFLAGS $ac_gssapi_libs"
+                           LIBS="$LIBS $ac_gssapi_libs"
                          else
                            for lib in $ac_gss_libs; do
                              AC_CHECK_LIB($lib,main)
@@ -200,7 +200,7 @@ check_heimdal(){
                            ac_libdir=`echo $ac_gssapi_libs | sed -e 's/.*-L//' | sed -e 's/ .*//'`  
                            LDFLAGS="$LDFLAGS $w_flag$ac_libdir$w_flag_2"
                          fi
-                         LDFLAGS="$LDFLAGS $ac_gssapi_libs"
+                         LIBS="$LIBS $ac_gssapi_libs"
                      else
                          for lib in $ac_gss_libs; do
                             AC_CHECK_LIB($lib,main)