]> granicus.if.org Git - pgbouncer/commitdiff
with as-needed the lib order is important
authorMarko Kreen <markokr@gmail.com>
Fri, 4 Jan 2008 12:56:06 +0000 (12:56 +0000)
committerMarko Kreen <markokr@gmail.com>
Fri, 4 Jan 2008 12:56:06 +0000 (12:56 +0000)
configure.ac

index c88759628a73a0a3401d2f896534b03b86ea89ac..19996fb5d1225d9b89d618516473be26c77d484a 100644 (file)
@@ -103,7 +103,7 @@ AC_ARG_WITH(libevent,
   [ test "$withval" = "no" && AC_MSG_ERROR("cannot work without libevent")
     CPPFLAGS="$CPPFLAGS -I$withval/include"
     LDFLAGS="$LDFLAGS -L$withval/lib" ])
-LIBS="$LIBS -levent"
+LIBS="-levent $LIBS"
 AC_LINK_IFELSE([
   #include <sys/types.h>
   #include <sys/time.h>