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


  55 # DTrace needs an executable data segment.
  56 MAPFILE.NED=
  57 
  58 MAPFILES +=     $(MAPFILE-ORDER)
  59 
  60 # For the libc/libthread unified world:
  61 # This library needs to be placed in /lib to allow
  62 # dlopen() functionality while in single-user mode.
  63 ROOTFS_DYNLIB=  $(RTLD:%=$(ROOTFS_LIBDIR)/%)
  64 ROOTFS_DYNLIB64=        $(RTLD:%=$(ROOTFS_LIBDIR64)/%)
  65 
  66 # For the libc/libthread separated world:
  67 # A version of this library needs to be placed in /etc/lib to allow
  68 # dlopen() functionality while in single-user mode.
  69 ETCLIBDIR=      $(ROOT)/etc/lib
  70 ETCDYNLIB=      $(RTLD:%=$(ETCLIBDIR)/%)
  71 
  72 ROOTDYNLIB=     $(RTLD:%=$(ROOTFS_LIBDIR)/%)
  73 ROOTDYNLIB64=   $(RTLD:%=$(ROOTFS_LIBDIR64)/%)
  74 







  75 
  76 FILEMODE =      755
  77 
  78 CPPFLAGS +=     -I$(SRCBASE)/lib/libc/inc \
  79                 -I$(SRCBASE)/uts/common/krtld \
  80                 -I$(SRCBASE)/uts/$(PLAT) \
  81                 -I$(SRCBASE)/uts/$(PLAT)/krtld \
  82                 -I$(SRC)/common/sgsrtcid \
  83                 -I$(ELFCAP) \
  84                  $(CPPFEATUREMACROS)
  85 
  86 ASFLAGS=        -P -D_ASM $(CPPFLAGS)
  87 LDLIB =         -L ../../libld/$(MACH)
  88 RTLDLIB =       -L ../../librtld/$(MACH)
  89 
  90 CERRWARN +=     -_gcc=-Wno-uninitialized
  91 CERRWARN +=     -_gcc=-Wno-unused-variable
  92 CERRWARN +=     -_gcc=-Wno-switch
  93 
  94 # not linted




  55 # DTrace needs an executable data segment.
  56 MAPFILE.NED=
  57 
  58 MAPFILES +=     $(MAPFILE-ORDER)
  59 
  60 # For the libc/libthread unified world:
  61 # This library needs to be placed in /lib to allow
  62 # dlopen() functionality while in single-user mode.
  63 ROOTFS_DYNLIB=  $(RTLD:%=$(ROOTFS_LIBDIR)/%)
  64 ROOTFS_DYNLIB64=        $(RTLD:%=$(ROOTFS_LIBDIR64)/%)
  65 
  66 # For the libc/libthread separated world:
  67 # A version of this library needs to be placed in /etc/lib to allow
  68 # dlopen() functionality while in single-user mode.
  69 ETCLIBDIR=      $(ROOT)/etc/lib
  70 ETCDYNLIB=      $(RTLD:%=$(ETCLIBDIR)/%)
  71 
  72 ROOTDYNLIB=     $(RTLD:%=$(ROOTFS_LIBDIR)/%)
  73 ROOTDYNLIB64=   $(RTLD:%=$(ROOTFS_LIBDIR64)/%)
  74 
  75 COMPATLINKS=    /etc/lib/ld.so.1 /usr/lib/ld.so.1 /usr/lib/$(MACH64)/ld.so.1
  76 $(ROOT)/etc/lib/ld.so.1 := COMPATLINKTARGET= ../../lib/ld.so.1
  77 $(ROOT)/usr/lib/ld.so.1 := COMPATLINKTARGET= ../../lib/ld.so.1
  78 $(ROOT)/usr/lib/$(MACH64)/ld.so.1 := \
  79         COMPATLINKTARGET= ../../../lib/$(MACH64)/ld.so.1
  80 
  81 install: $(ROOTCOMPATLINKS)
  82 
  83 FILEMODE =      755
  84 
  85 CPPFLAGS +=     -I$(SRCBASE)/lib/libc/inc \
  86                 -I$(SRCBASE)/uts/common/krtld \
  87                 -I$(SRCBASE)/uts/$(PLAT) \
  88                 -I$(SRCBASE)/uts/$(PLAT)/krtld \
  89                 -I$(SRC)/common/sgsrtcid \
  90                 -I$(ELFCAP) \
  91                  $(CPPFEATUREMACROS)
  92 
  93 ASFLAGS=        -P -D_ASM $(CPPFLAGS)
  94 LDLIB =         -L ../../libld/$(MACH)
  95 RTLDLIB =       -L ../../librtld/$(MACH)
  96 
  97 CERRWARN +=     -_gcc=-Wno-uninitialized
  98 CERRWARN +=     -_gcc=-Wno-unused-variable
  99 CERRWARN +=     -_gcc=-Wno-switch
 100 
 101 # not linted