Work around a libtool bug.
* configure.ac [WITH_GSSAPI]: Remove any -Wl directives from GSSAPI_LIBS.
Showing
1 changed file
with
20 additions
and
1 deletions
... | @@ -256,7 +256,26 @@ if test "x$WITH_GSSAPI" != "xno"; then | ... | @@ -256,7 +256,26 @@ if test "x$WITH_GSSAPI" != "xno"; then |
256 | AC_CACHE_SAVE | 256 | AC_CACHE_SAVE |
257 | AC_MSG_RESULT([GSSAPI libraries not found]) | 257 | AC_MSG_RESULT([GSSAPI libraries not found]) |
258 | else | 258 | else |
259 | SERV_AUTHLIBS="$SERV_AUTHLIBS $GSSAPI_LIBS" | 259 | # Output produced by `krb5-config --libs' may contain `-Wl,-rpath -Wl,DIR' |
260 | # options. Once they are added to SERV_AUTHLIBS, libtool, when creating | ||
261 | # relink command line in wrapper files for executables, places them at the | ||
262 | # beginnig of the option list and adds its own -rpath directives at | ||
263 | # the end. Executables created by such command will look for the runtime | ||
264 | # libraries first in DIR and then in the local tree subdirectories. Thus, | ||
265 | # if DIR contains libraries from a previous installation of Mailutils, the | ||
266 | # programs will use old libraries. | ||
267 | # | ||
268 | # Obviously, libtool should be fixed to place user-added -rpath directives | ||
269 | # after the ones added by it. For the time being I work around this bug by | ||
270 | # removing any -Wl directives from GSSAPI_LIBS. | ||
271 | # | ||
272 | for arg in $GSSAPI_LIBS | ||
273 | do | ||
274 | case $arg in | ||
275 | -Wl,*) ;; | ||
276 | *) SERV_AUTHLIBS="$SERV_AUTHLIBS $arg" | ||
277 | esac | ||
278 | done | ||
260 | SERV_AUTHINCS="$SERV_AUTHINCS $GSSAPI_CFLAGS" | 279 | SERV_AUTHINCS="$SERV_AUTHINCS $GSSAPI_CFLAGS" |
261 | IMAP_AUTHOBJS="$IMAP_AUTHOBJS auth_gss.o" | 280 | IMAP_AUTHOBJS="$IMAP_AUTHOBJS auth_gss.o" |
262 | AC_DEFINE(WITH_GSSAPI,1,[Define if mailutils is using GSSAPI]) | 281 | AC_DEFINE(WITH_GSSAPI,1,[Define if mailutils is using GSSAPI]) |
... | ... |
-
Please register or sign in to post a comment