libtool-patches
[Top][All Lists]
Advanced

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

Support for always generating a library as static


From: Bonz
Subject: Support for always generating a library as static
Date: Fri, 02 Feb 2001 14:59:55 +0100

In my program I have a need to always generate a library as a static one
(because of performance), but to generate dlopen modules as dynamic
ones.  Since the library will be installed, I have to suppress
generation of the shared library in the Makefiles, but I couldn't find
any way to doing this for a single library except creating a separate
configure.in and a separate libtool for that directory.

This patch solves the problem by providing a --all-static flags to
libtool's compile mode, which suppresses generation of shared
libraries.  It is relative to the 1.3.5 release.

Cheers,

Paolo Bonzini
*** ltmain.sh.orig      Thu Jul 13 23:54:59 2000
--- ltmain.sh   Fri Feb  2 14:01:00 2001
***************
*** 286,295 ****
--- 286,301 ----
  
        -static)
        build_old_libs=yes
        continue
        ;;
+ 
+       -all-static)
+       build_libtool_libs=no
+       build_old_libs=yes
+       continue
+       ;;
        esac
  
        case "$user_target" in
        next)
        # The next one is the -o target name


reply via email to

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