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

@@ -20,12 +20,10 @@
 #
 #
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# ident "%Z%%M% %I%     %E% SMI"
-#
 
 LIBRARY=        libmalloc.a
 VERS=           .1
 
 OBJECTS=        malloc.o

@@ -44,10 +42,17 @@
 CFLAGS +=       $(CCVERBOSE)
 CPPFLAGS +=     -I../../common/inc -D_REENTRANT
 DYNFLAGS +=     $(ZINTERPOSE)
 LDLIBS +=       -lc
 
+COMPATLINKS=    /usr/ccs/lib/libmalloc.so \
+                /usr/ccs/lib/$(MACH64)/libmalloc.so
+
+$(ROOT)/usr/ccs/lib/libmalloc.so := COMPATLINKTARGET=../../lib/libmalloc.so.1
+$(ROOT)/usr/ccs/lib/$(MACH64)/libmalloc.so:= \
+        COMPATLINKTARGET=../../../lib/$(MACH64)/libmalloc.so.1
+
 .KEEP_STATE:
 
 lint: lintcheck
 
 # include library targets