bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/27082] Only one libdep.so should installed


From: hjl.tools at gmail dot com
Subject: [Bug ld/27082] Only one libdep.so should installed
Date: Wed, 16 Dec 2020 23:08:18 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=27082

--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Howard Chu from comment #6)
> (In reply to H.J. Lu from comment #5)
> > We can just build libdep and install it manually.
> 
> I took a look at how liblto-plugin is built 
> https://gcc.gnu.org/git/?p=gcc.git;a=tree;f=lto-plugin;
> h=ab65b7bf798a806198824c7fc578b9f3f4d4c62f;
> hb=64a54505ec8249178b9767d1420354f8eb55de50
> 
> We can get rid of the version and static libraries using this patch
> 
> diff --git a/ld/Makefile.am b/ld/Makefile.am
> index 2f59ee6169..929c017a85 100644
> --- a/ld/Makefile.am
> +++ b/ld/Makefile.am
> @@ -983,6 +983,7 @@ enablings.exp:
>  #
>  # Build a dummy plugin using libtool.
>  #
> +AM_LIBTOOLFLAGS = --tag=disable-static
>  noinst_LTLIBRARIES = libldtestplug.la libldtestplug2.la \
>                      libldtestplug3.la libldtestplug4.la
>  libldtestplug_la_SOURCES = testplug.c
> @@ -1001,7 +1002,7 @@ libldtestplug4_la_LDFLAGS = -no-undefined -rpath
> /nowhere
>  bfdplugindir = $(libdir)/bfd-plugins
>  bfdplugin_LTLIBRARIES = libdep.la
>  libdep_la_SOURCES = libdep_plugin.c
> -libdep_la_LDFLAGS = -no-undefined -rpath /nowhere
> +libdep_la_LDFLAGS = -module -avoid-version
>  
>  # DOCUMENTATION TARGETS
>  # Manual configuration file; not usually attached to normal configuration,
> 
> It will still install the .la file though.

1. Just remove the .la file after it is installed during "make install".  Or
2. Add libdep.la to noinst_LTLIBRARIES and install libdep.so from
"make install-data-local".

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

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