From 0262acc75bda6bccce8e417eb165c0c70fd2a1a4 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sun, 13 Feb 2011 23:54:10 +1300 Subject: [PATCH] Bug 3151: squid_kerb_auth: use autoconf LIBS instead of FLAGS for library linkage 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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/helpers/negotiate_auth/squid_kerb_auth/configure.ac b/helpers/negotiate_auth/squid_kerb_auth/configure.ac index e2bbf2f0f2..e78f61e331 100644 --- a/helpers/negotiate_auth/squid_kerb_auth/configure.ac +++ b/helpers/negotiate_auth/squid_kerb_auth/configure.ac @@ -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) -- 2.47.2