summaryrefslogtreecommitdiff
path: root/usr/src/lib/nsswitch/files/Makefile.com
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/nsswitch/files/Makefile.com')
-rw-r--r--usr/src/lib/nsswitch/files/Makefile.com16
1 files changed, 14 insertions, 2 deletions
diff --git a/usr/src/lib/nsswitch/files/Makefile.com b/usr/src/lib/nsswitch/files/Makefile.com
index 1489badee6..e79567aaaf 100644
--- a/usr/src/lib/nsswitch/files/Makefile.com
+++ b/usr/src/lib/nsswitch/files/Makefile.com
@@ -56,10 +56,22 @@ include ../../Makefile.com
include ../../../Makefile.rootfs
CPPFLAGS += -I../../../common/inc
-LINTFLAGS += -erroff=E_GLOBAL_COULD_BE_STATIC2
-LINTFLAGS64 += -erroff=E_GLOBAL_COULD_BE_STATIC2
LDLIBS += -lnsl
DYNLIB1 = nss_files.so$(VERS)
+COMPATLINKS= usr/lib/$(DYNLIB1) \
+ etc/lib/$(DYNLIB1)
+COMPATLINKS64= usr/lib/$(MACH64)/$(DYNLIB1)
+
+$(ROOT)/usr/lib/$(DYNLIB1) := COMPATLINKTARGET=../../lib/$(DYNLIB1)
+$(ROOT)/usr/lib/$(MACH64)/$(DYNLIB1):= \
+ COMPATLINKTARGET=../../../lib/$(MACH64)/$(DYNLIB1)
+$(ROOT)/usr/lib/$(DYNLIB1) := COMPATLINKTARGET=../../lib/$(DYNLIB1)
+$(ROOT)/usr/lib/$(MACH64)/$(DYNLIB1):= \
+ COMPATLINKTARGET=../../../lib/$(MACH64)/$(DYNLIB1)
+
+$(ROOT)/etc/lib/$(DYNLIB1) := COMPATLINKTARGET= ../../lib/$(DYNLIB1)
+
all: $(DYNLIB1)
+