diff mbox

Build only shared libnsl objects if NIS is disabled (bug 22701)

Message ID 878tckxzph.fsf@linux-m68k.org
State New
Headers show

Commit Message

Andreas Schwab Jan. 26, 2018, 6:05 p.m. UTC
[BZ #22701]
	* nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
	Build only shared objects.

Comments

Florian Weimer Jan. 26, 2018, 6:12 p.m. UTC | #1
On 01/26/2018 07:05 PM, Andreas Schwab wrote:
> -libnsl-inhibit-o = .o # Build no static libnsl.a.
> +# Build only shared libnsl.
> +libnsl-inhibit-o = $(filter-out .os,$(object-suffixes))

Why is this change needed?  Is it about --enable-profile builds?

Thanks,
Florian
Andreas Schwab Jan. 26, 2018, 7:50 p.m. UTC | #2
On Jan 26 2018, Florian Weimer <fweimer@redhat.com> wrote:

> On 01/26/2018 07:05 PM, Andreas Schwab wrote:
>> -libnsl-inhibit-o = .o # Build no static libnsl.a.
>> +# Build only shared libnsl.
>> +libnsl-inhibit-o = $(filter-out .os,$(object-suffixes))
>
> Why is this change needed?  Is it about --enable-profile builds?

Yes.

Andreas.
diff mbox

Patch

diff --git a/nis/Makefile b/nis/Makefile
index 01ec4dc357..e7497f7242 100644
--- a/nis/Makefile
+++ b/nis/Makefile
@@ -74,7 +74,8 @@  else # not $(build-obsolete-nsl)
 # is not installed.
 install-lib-ldscripts = libnsl.so
 $(inst_libdir)/libnsl.so:
-libnsl-inhibit-o = .o # Build no static libnsl.a.
+# Build only shared libnsl.
+libnsl-inhibit-o = $(filter-out .os,$(object-suffixes))
 
 endif # not $(build-obsolete-nsl)