summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 65ce17c)
raw | patch | inline | side by side (parent: 65ce17c)
author | Sebastian Harl <sh@tokkee.org> | |
Wed, 22 Jan 2014 12:34:30 +0000 (13:34 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Wed, 22 Jan 2014 12:34:30 +0000 (13:34 +0100) |
This fixes the check when using GCC's --as-needed which fails when options are
not specified in the right order. Libraries (-l options) have to be specified
after any source files. autoconf does the right thing when using $LIBS for
that case rather than $LDFLAGS.
not specified in the right order. Libraries (-l options) have to be specified
after any source files. autoconf does the right thing when using $LIBS for
that case rather than $LDFLAGS.
configure.in | patch | blob | history |
diff --git a/configure.in b/configure.in
index 81b261165da0b5c1e366ce1f6c53252c39fb402d..0f2db0788ddb4cdcb3464d0f57c17b6f2a68fbc3 100644 (file)
--- a/configure.in
+++ b/configure.in
then
SAVE_CPPFLAGS="$CPPFLAGS"
SAVE_LDFLAGS="$LDFLAGS"
+ SAVE_LIBS="$LIBS"
CPPFLAGS="$CPPFLAGS $with_librabbitmq_cppflags"
- LDFLAGS="$LDFLAGS $with_librabbitmq_ldflags -lrabbitmq"
+ LDFLAGS="$LDFLAGS $with_librabbitmq_ldflags"
+ LIBS="-lrabbitmq"
AC_CHECK_HEADERS(amqp_tcp_socket.h amqp_socket.h)
AC_CHECK_FUNC(amqp_tcp_socket_new, [with_amqp_tcp_socket="yes"], [with_amqp_tcp_socket="no"])
CPPFLAGS="$SAVE_CPPFLAGS"
LDFLAGS="$SAVE_LDFLAGS"
+ LIBS="$SAVE_LIBS"
fi
# }}}