libtool-patches
[Top][All Lists]
Advanced

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

Re: ltmain.sh patch: -all-dynamic option


From: Ralf Wildenhues
Subject: Re: ltmain.sh patch: -all-dynamic option
Date: Mon, 1 Nov 2010 21:39:00 +0100
User-agent: Mutt/1.5.20 (2010-08-04)

Hello Karl-Andre',

* Karl-Andre' Skevik wrote on Sat, Oct 30, 2010 at 11:46:38AM CEST:
> I have an application that builds a library for use with LD_PRELOAD,
> which should only be built dynamically. I have used a modification
> like the one below to achieve this:

> *** ltmain.sh.orig       Sat Oct 30 11:35:37 2010
> --- ltmain.sh   Sat Oct 30 11:37:50 2010
> ***************
> *** 5173,5178 ****
> --- 5173,5185 ----
>           fi
>           prefer_static_libs=yes
>           ;;
> +         -all-dynamic)
> +           if test "$build_libtool_libs" = no; then
> +             func_warning "unable to build only dynamic libraries in this 
> configuration"
> +           fi
> +           build_old_libs=no
> +           prefer_static_libs=no
> +         ;;
>         -static)
>           if test -z "$pic_flag" && test -n "$link_static_flag"; then
>             dlopen_self=$dlopen_self_static
> 
> Would it be possible to have this kind of functionality included in
> the official libtool distribution?

Thanks for the report and patch.  What does -all-dynamic bring you that
either of the following won't?
- configure with --disable-static,
- add --tag=disable-static to AM_LIBTOOLFLAGS or libfoo_la_LIBTOOLFLAGS.

Thanks,
Ralf



reply via email to

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