]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #2203: configure {--with-maxfd,--with-filedescriptors} unsets LDFLAGS
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 18 Mar 2008 11:58:16 +0000 (23:58 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 18 Mar 2008 11:58:16 +0000 (23:58 +1200)
Moves LDFLAGS save point to a position which covers all FD test code

configure.in

index d3e602b1d126af16aff8efc922ef602cea2e9d95..6df159b07e1ccc7fcb645475bd8c06704eea9d5e 100644 (file)
@@ -2967,11 +2967,11 @@ AC_DEFINE_UNQUOTED(DEFAULT_FD_SETSIZE, $DEFAULT_FD_SETSIZE, [Default FD_SETSIZE
 dnl Not cached since people are likely to tune this
 AC_MSG_CHECKING(Maximum number of filedescriptors we can open)
 dnl damn! FreeBSD's pthreads breaks dup2().
+TLDFLAGS="$LDFLAGS"
 if test -n "$squid_filedescriptors_num" ; then
   SQUID_MAXFD=$squid_filedescriptors_num
   AC_MSG_RESULT($SQUID_MAXFD (user-forced))
 else
-  TLDFLAGS="$LDFLAGS"
   case $host in
   i386-unknown-freebsd*)
       if echo "$LDFLAGS" | grep -q pthread; then