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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/Makefile.rootfs
          +++ new/usr/src/lib/Makefile.rootfs
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16   16  # If applicable, add the following below this CDDL HEADER, with the
  17   17  # fields enclosed by brackets "[]" replaced with your own identifying
  18   18  # information: Portions Copyright [yyyy] [name of copyright owner]
  19   19  #
  20   20  # CDDL HEADER END
  21   21  #
  22   22  #
  23   23  # Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
  24   24  # Use is subject to license terms.
  25      -#
  26      -# ident "%Z%%M% %I%     %E% SMI"
  27      -#
       25 +
  28   26  # To install libraries in the root filesystem (/lib),
  29   27  # include this Makefile right after Makefile.lib
  30   28  
  31   29  ROOTLIBDIR=     $(ROOTFS_LIBDIR)
  32   30  ROOTLIBDIR64=   $(ROOTFS_LIBDIR64)
       31 +
       32 +
       33 +COMPATLINKS=    /usr/lib/$(DYNLIB) \
       34 +                /usr/lib/$(LIBLINKS)
       35 +
       36 +COMPATLINKS64=  /usr/lib/$(MACH64)/$(DYNLIB) \
       37 +                /usr/lib/$(MACH64)/$(LIBLINKS)
       38 +
       39 +$(ROOT)/usr/lib/$(DYNLIB) := COMPATLINKTARGET=../../lib/$(DYNLIB)
       40 +$(ROOT)/usr/lib/$(LIBLINKS) := COMPATLINKTARGET=../../lib/$(DYNLIB)
       41 +$(ROOT)/usr/lib/$(MACH64)/$(DYNLIB):= \
       42 +        COMPATLINKTARGET=../../../lib/$(MACH64)/$(DYNLIB)
       43 +$(ROOT)/usr/lib/$(MACH64)/$(LIBLINKS) := \
       44 +        COMPATLINKTARGET=../../../lib/$(MACH64)/$(DYNLIB)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX