bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libtool --mode=execute with -L parameter, a v2.2 regression


From: Simon Josefsson
Subject: libtool --mode=execute with -L parameter, a v2.2 regression
Date: Mon, 10 Mar 2008 14:09:50 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux)

Hi!

Here /usr/bin/libtool is debian's 1.5.26 and /usr/local/bin/libtool is
hand-compiled v2.2:

address@hidden:~$ /usr/bin/libtool --mode=execute echo -L . foo
-L . foo
address@hidden:~$ /usr/local/bin/libtool --mode=execute echo -L . foo
-L / /
address@hidden:~$ 

Is this a bug?

If it is not a bug, how should I pass -L flags to tools that I execute
via libtool --mode=execute?

This causes us problems in gnutls since we invoke Guile self tests using
the following Makefile.am snippet:

TESTS_ENVIRONMENT = $(top_builddir)/guile/pre-inst-guile -L $(srcdir)

The pre-inst-guile is generated to contain absolute paths, and one
incarnation of it looks like:

GUILE_LOAD_PATH="/home/jas/src/gnutls/guile/modules:$GUILE_LOAD_PATH"
export GUILE_LOAD_PATH

exec /home/jas/src/gnutls/libtool --mode=execute \
       -dlopen "/home/jas/src/gnutls/guile/src/libguile-gnutls-v-1.la" \
       -dlopen "/home/jas/src/gnutls/guile/src/libguile-gnutls-extra-v-1.la" \
       /usr/bin/guile "$@"

Thus, the command to invoke becomes equivalent to:

$ export GUILE_LOAD_PATH=/home/jas/src/gnutls/guile/modules
$ /home/jas/src/gnutls/libtool --mode=execute -dlopen 
"/home/jas/src/gnutls/guile/src/libguile-gnutls-v-1.la" -dlopen 
"/home/jas/src/gnutls/guile/src/libguile-gnutls-extra-v-1.la" /usr/bin/guile -L 
. openpgp-auth.scm

This has worked fine with libtool v1.5, but libtool v2.2 is confused by
the -L and fails.

Thanks,
/Simon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]