summaryrefslogtreecommitdiff
path: root/usr/src/lib/nsswitch/user/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/user/Makefile.com
parent8ca018083101bf1cb175869679bc123187fb1bab (diff)
parent2a1277d3064386cd5c4e372301007aa330bf1d5e (diff)
downloadillumos-joyent-gcc9.tar.gz
mergegcc9
Diffstat (limited to 'usr/src/lib/nsswitch/user/Makefile.com')
-rw-r--r--usr/src/lib/nsswitch/user/Makefile.com16
1 files changed, 9 insertions, 7 deletions
diff --git a/usr/src/lib/nsswitch/user/Makefile.com b/usr/src/lib/nsswitch/user/Makefile.com
index befd4172a7..0a1803ff22 100644
--- a/usr/src/lib/nsswitch/user/Makefile.com
+++ b/usr/src/lib/nsswitch/user/Makefile.com
@@ -22,9 +22,6 @@
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
-# ident "%Z%%M% %I% %E% SMI"
-#
-# lib/nsswitch/user/Makefile.com
LIBRARY = libnss_user.a
VERS = .1
@@ -38,10 +35,15 @@ include ../../Makefile.com
# install this library in the root filesystem
include ../../../Makefile.rootfs
-CPPFLAGS += -I../../../common/inc
-LINTFLAGS += -erroff=E_GLOBAL_COULD_BE_STATIC2 -erroff=E_FUNC_SET_NOT_USED
-LINTFLAGS64 += -erroff=E_GLOBAL_COULD_BE_STATIC2 -erroff=E_FUNC_SET_NOT_USED
-
DYNLIB1 = nss_user.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)
+
+CPPFLAGS += -I../../../common/inc
+
all: $(DYNLIB1)