Print this page
lib: move compat links from targetdirs to proper makefiles

@@ -21,13 +21,10 @@
 #
 #
 # 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
 
 OBJECTS =       getpwent.o      \

@@ -41,7 +38,16 @@
 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
+