Skip to content

Commit

Permalink
Link with -Wl,-brtl on AIX
Browse files Browse the repository at this point in the history
Fixes QAS bug #24821.
  • Loading branch information
tedjp committed Aug 31, 2011
1 parent 89089d0 commit 6c1e9a5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,19 @@ AC_SUBST([WGET])
AC_PATH_PROG([CURL], [curl], [false])
AC_SUBST([CURL])

# In lieu of libtool knowing how to link properly, we need to tell AIX's
# linker to link dynamically, to avoid statically linking libvas.
case "$ac_cv_host" in
*-*-aix*)
old_LDFLAGS="$LDFLAGS"
LDFLAGS="-Wl,-brtl $LDFLAGS"
AC_MSG_CHECKING([whether -Wl,-brtl works in LDFLAGS])
AC_LINK_IFELSE([AC_LANG_SOURCE([int main(void) { return 0; }])],
[AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])
LDFLAGS="$old_LDFLAGS"])
esac

AC_CHECK_FUNC([getaddrinfo])
AC_CHECK_FUNC([vsyslog])
AC_CHECK_FUNC([getopt], [], [AC_LIBOBJ([getopt])])
Expand Down

0 comments on commit 6c1e9a5

Please sign in to comment.