Print this page
9852 enable ld(1) guidance and deflib assertions for the illumos build


  63 MYLDLIBS = -lumem -luutil
  64 LDLIBS  += -lsecdb -lbsm $(MYLDLIBS)
  65 LINTFLAGS += -errtags -erroff=E_BAD_FORMAT_ARG_TYPE2 -erroff=E_NAME_DEF_NOT_USED2
  66 
  67 CLOBBERFILES += $(MYPROG:%=%-native)
  68 
  69 LIBUUTIL        = $(SRC)/lib/libuutil
  70 LIBSCF          = $(SRC)/lib/libscf
  71 
  72 SCRIPTFILE      = restore_repository
  73 ROOTSCRIPTFILE  = $(ROOTCMDDIR)/$(SCRIPTFILE)
  74 
  75 #
  76 # Native variant (used in ../seed)
  77 #
  78 $(NATIVE_BUILD)CC =     $(NATIVECC)
  79 $(NATIVE_BUILD)LD =     $(NATIVELD)
  80 $(NATIVE_BUILD)CFLAGS = $(NATIVE_CFLAGS)
  81 $(NATIVE_BUILD)CPPFLAGS = $(MYCPPFLAGS) -I$(LIBUUTIL)/common -I$(LIBSCF)/inc
  82 $(NATIVE_BUILD)CPPFLAGS += -DNATIVE_BUILD
  83 $(NATIVE_BUILD)LDFLAGS =

  84 $(NATIVE_BUILD)LDLIBS = -L$(ADJUNCT_PROTO)/usr/lib -R$(ADJUNCT_PROTO)/usr/lib \
  85                         -L$(LIBUUTIL)/native -R $(LIBUUTIL)/native $(MYLDLIBS)
  86 
  87 DIRMODE = 0755
  88 FILEMODE = 0555
  89 
  90 OBJSQLITE =
  91 LIBSQLITE = -lsqlite-sys
  92 $(NATIVE_BUILD)OBJSQLITE = $(ROOT)/lib/libsqlite-native.o
  93 $(NATIVE_BUILD)LIBSQLITE =
  94 
  95 OBJS += $(OBJSQLITE)
  96 LDLIBS += $(LIBSQLITE)
  97 
  98 install := TARGET = install
  99 clobber := TARGET = clobber
 100 
 101 .KEEP_STATE:
 102 .PARALLEL: $(MYOBJS) $(MYOBJS:%.o=%-native.o)
 103 




  63 MYLDLIBS = -lumem -luutil
  64 LDLIBS  += -lsecdb -lbsm $(MYLDLIBS)
  65 LINTFLAGS += -errtags -erroff=E_BAD_FORMAT_ARG_TYPE2 -erroff=E_NAME_DEF_NOT_USED2
  66 
  67 CLOBBERFILES += $(MYPROG:%=%-native)
  68 
  69 LIBUUTIL        = $(SRC)/lib/libuutil
  70 LIBSCF          = $(SRC)/lib/libscf
  71 
  72 SCRIPTFILE      = restore_repository
  73 ROOTSCRIPTFILE  = $(ROOTCMDDIR)/$(SCRIPTFILE)
  74 
  75 #
  76 # Native variant (used in ../seed)
  77 #
  78 $(NATIVE_BUILD)CC =     $(NATIVECC)
  79 $(NATIVE_BUILD)LD =     $(NATIVELD)
  80 $(NATIVE_BUILD)CFLAGS = $(NATIVE_CFLAGS)
  81 $(NATIVE_BUILD)CPPFLAGS = $(MYCPPFLAGS) -I$(LIBUUTIL)/common -I$(LIBSCF)/inc
  82 $(NATIVE_BUILD)CPPFLAGS += -DNATIVE_BUILD
  83 $(NATIVE_BUILD)LDFLAGS += -Bdirect
  84 $(NATIVE_BUILD)NATIVE_LIBS = libumem.so libbsm.so libc.so
  85 $(NATIVE_BUILD)LDLIBS = -L$(ADJUNCT_PROTO)/usr/lib -R$(ADJUNCT_PROTO)/usr/lib \
  86                         -L$(LIBUUTIL)/native -R $(LIBUUTIL)/native $(MYLDLIBS)
  87 
  88 DIRMODE = 0755
  89 FILEMODE = 0555
  90 
  91 OBJSQLITE =
  92 LIBSQLITE = -lsqlite-sys
  93 $(NATIVE_BUILD)OBJSQLITE = $(ROOT)/lib/libsqlite-native.o
  94 $(NATIVE_BUILD)LIBSQLITE =
  95 
  96 OBJS += $(OBJSQLITE)
  97 LDLIBS += $(LIBSQLITE)
  98 
  99 install := TARGET = install
 100 clobber := TARGET = clobber
 101 
 102 .KEEP_STATE:
 103 .PARALLEL: $(MYOBJS) $(MYOBJS:%.o=%-native.o)
 104