From: Marko Kreen Date: Fri, 4 Jan 2008 12:56:06 +0000 (+0000) Subject: with as-needed the lib order is important X-Git-Tag: pgbouncer_1_2_rc2~91 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=35bbea2f2dc989fa01465441daf350c326567634;p=pgbouncer with as-needed the lib order is important --- diff --git a/configure.ac b/configure.ac index c887596..19996fb 100644 --- a/configure.ac +++ b/configure.ac @@ -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 #include