Am 28.02.2012 09:17, schrieb jr_extern(a)vfnet.de: > From: Jens Rehsack > > --- > Makefile.am | 4 ++++ > configure.ac | 10 ++++++++-- > 2 files changed, 12 insertions(+), 2 deletions(-) > > diff --git a/Makefile.am b/Makefile.am > index c3a4486..bebcb90 100644 > --- a/Makefile.am > +++ b/Makefile.am > @@ -1,6 +1,10 @@ > > AM_MAKEFLAGS = --no-print-directory > > +LIBTOOL_DEPS = @LIBTOOL_DEPS@ > +libtool: $(LIBTOOL_DEPS) > + $(SHELL) ./config.status libtool > + > gdbus_sources = gdbus/gdbus.h gdbus/mainloop.c gdbus/watch.c \ > gdbus/object.c gdbus/polkit.c > > diff --git a/configure.ac b/configure.ac > index 34cc526..d82569b 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -31,8 +31,8 @@ AC_PROG_INSTALL > m4_define([_LT_AC_TAGCONFIG], []) > m4_ifdef([AC_LIBTOOL_TAGS], [AC_LIBTOOL_TAGS([])]) > > -AC_DISABLE_STATIC > -AC_PROG_LIBTOOL > +dnl AC_DISABLE_STATIC > +dnl AC_PROG_LIBTOOL > > AC_ARG_ENABLE(optimization, AC_HELP_STRING([--disable-optimization], > [disable code optimization through compiler]), [ > @@ -58,6 +58,12 @@ AC_ARG_ENABLE(pie, AC_HELP_STRING([--enable-pie], > fi > ]) > > +dnl LT_INIT should be invoked after all compiler flags checks, because > +dnl of LT_INIT remembers the RPATH stored in test targets which might > +dnl be different for different compiler flags (known issue on AIX) > +LT_INIT([dlopen,disable-static]) This should be +LT_INIT([dlopen disable-static]) > +AC_SUBST([LIBTOOL_DEPS]) > + > AC_CHECK_HEADERS(resolv.h, dummy=yes, > AC_MSG_ERROR(resolver header files are required)) > AC_CHECK_LIB(resolv, ns_initparse, dummy=yes, [