summaryrefslogtreecommitdiff
path: root/usr/src/lib/nsswitch/compat/Makefile.com
diff options
context:
space:
mode:
authorJohn Levon <john.levon@joyent.com>2020-05-26 13:57:13 +0000
committerJohn Levon <john.levon@joyent.com>2020-05-26 13:57:13 +0000
commit5b2acc0949194447bba6e45a0fa44d0b5f42f208 (patch)
tree7ea9eb87bc68fee386dd39035ce715e87a0e673c /usr/src/lib/nsswitch/compat/Makefile.com
parent8ca018083101bf1cb175869679bc123187fb1bab (diff)
parent2a1277d3064386cd5c4e372301007aa330bf1d5e (diff)
downloadillumos-joyent-gcc9.tar.gz
mergegcc9
Diffstat (limited to 'usr/src/lib/nsswitch/compat/Makefile.com')
-rw-r--r--usr/src/lib/nsswitch/compat/Makefile.com14
1 files changed, 10 insertions, 4 deletions
diff --git a/usr/src/lib/nsswitch/compat/Makefile.com b/usr/src/lib/nsswitch/compat/Makefile.com
index 5b600c5588..b5b4b7f388 100644
--- a/usr/src/lib/nsswitch/compat/Makefile.com
+++ b/usr/src/lib/nsswitch/compat/Makefile.com
@@ -23,9 +23,6 @@
# Copyright 1993,2001-2003 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
-# ident "%Z%%M% %I% %E% SMI"
-#
-# lib/nsswitch/compat/Makefile.com
LIBRARY = libnss_compat.a
VERS = .1
@@ -43,5 +40,14 @@ include ../../Makefile.com
# install this library in the root filesystem
include ../../../Makefile.rootfs
-LDLIBS += -lnsl
DYNLIB1 = nss_compat.so$(VERS)
+
+COMPATLINKS= usr/lib/$(DYNLIB1)
+COMPATLINKS64= usr/lib/$(MACH64)/$(DYNLIB1)
+
+$(ROOT)/usr/lib/$(DYNLIB1) := COMPATLINKTARGET=../../lib/$(DYNLIB1)
+$(ROOT)/usr/lib/$(MACH64)/$(DYNLIB1):= \
+ COMPATLINKTARGET=../../../lib/$(MACH64)/$(DYNLIB1)
+
+LDLIBS += -lnsl
+