diff mbox series

nss: Do not produces static linker input files for libnss_files

Message ID 878s2huiha.fsf@oldenburg.str.redhat.com
State New
Headers show
Series nss: Do not produces static linker input files for libnss_files | expand

Commit Message

Florian Weimer July 8, 2021, 11:56 a.m. UTC
---
 nss/Makefile | 8 ++++++++
 1 file changed, 8 insertions(+)

Tested in i686-linux-gnu, x86_64-linux-gnu.  Built with
build-many-glibcs.py.  “find …/install/glibcs/ | grep libnss_files |
grep -vF /libnss_files.so.2” does not show any output.

Thanks,
Florian

Comments

Florian Weimer July 8, 2021, 11:57 a.m. UTC | #1
I changed the commit subject as indicated.


> ---
>  nss/Makefile | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> Tested in i686-linux-gnu, x86_64-linux-gnu.  Built with
> build-many-glibcs.py.  “find …/install/glibcs/ | grep libnss_files |
> grep -vF /libnss_files.so.2” does not show any output.
>
> Thanks,
> Florian
>
> diff --git a/nss/Makefile b/nss/Makefile
> index 63a386af18..bccf9f2806 100644
> --- a/nss/Makefile
> +++ b/nss/Makefile
> @@ -105,6 +105,14 @@ routines += \
>    files-initgroups \
>    # routines
>  
> +# Build only an empty shared libnss_files.
> +libnss_files-inhibit-o = $(filter-out .os,$(object-suffixes))
> +
> +# Pretend that libnss_files.so is a linker script, so that the symbolic link
> +# is not installed.
> +install-lib-ldscripts = libnss_files.so
> +$(inst_libdir)/libnss_files.so:
> +
>  libnss_db-dbs		:= $(addprefix db-,\
>  				       $(filter-out hosts network key alias,\
>  						    $(databases))) \
Andreas Schwab July 8, 2021, 11:59 a.m. UTC | #2
Ok.

Andreas.
diff mbox series

Patch

diff --git a/nss/Makefile b/nss/Makefile
index 63a386af18..bccf9f2806 100644
--- a/nss/Makefile
+++ b/nss/Makefile
@@ -105,6 +105,14 @@  routines += \
   files-initgroups \
   # routines
 
+# Build only an empty shared libnss_files.
+libnss_files-inhibit-o = $(filter-out .os,$(object-suffixes))
+
+# Pretend that libnss_files.so is a linker script, so that the symbolic link
+# is not installed.
+install-lib-ldscripts = libnss_files.so
+$(inst_libdir)/libnss_files.so:
+
 libnss_db-dbs		:= $(addprefix db-,\
 				       $(filter-out hosts network key alias,\
 						    $(databases))) \