Print this page
12323 configd NATIVE_LIBS setting reversed meaning


  61 CERRWARN += -_gcc=-Wno-unused-label
  62 CERRWARN += -_gcc=-Wno-unused-variable
  63 CERRWARN += -_gcc=-Wno-unused-function
  64 CERRWARN += $(CNOWARN_UNINIT)
  65 
  66 # strange false positive
  67 SMOFF += free
  68 
  69 MYLDLIBS = -lumem -luutil
  70 LDLIBS  += -lsecdb -lbsm $(MYLDLIBS)
  71 
  72 CLOBBERFILES += $(MYPROG:%=%-native)
  73 
  74 LIBUUTIL        = $(SRC)/lib/libuutil
  75 LIBSCF          = $(SRC)/lib/libscf
  76 
  77 SCRIPTFILE      = restore_repository
  78 ROOTSCRIPTFILE  = $(ROOTCMDDIR)/$(SCRIPTFILE)
  79 
  80 #
  81 # Native variant (used in ../seed). We only need to set NATIVE_LIBS if
  82 # $(ADJUNCT_PROTO) is pointing outside of /usr/lib.
  83 #
  84 $(NO_ADJUNCT_PROTO)NATIVE_LIBS += libumem.so libc.so
  85 $(NATIVE_BUILD)CC =     $(NATIVECC)
  86 $(NATIVE_BUILD)LD =     $(NATIVELD)
  87 $(NATIVE_BUILD)CFLAGS = $(NATIVE_CFLAGS)
  88 $(NATIVE_BUILD)CPPFLAGS = $(MYCPPFLAGS) -I$(LIBUUTIL)/common -I$(LIBSCF)/inc
  89 $(NATIVE_BUILD)CPPFLAGS += -DNATIVE_BUILD
  90 $(NATIVE_BUILD)LDFLAGS = $(BDIRECT)
  91 $(NATIVE_BUILD)LDLIBS = -L$(ADJUNCT_PROTO)/usr/lib -R$(ADJUNCT_PROTO)/usr/lib \
  92                         -L$(LIBUUTIL)/native -R $(LIBUUTIL)/native $(MYLDLIBS)
  93 
  94 DIRMODE = 0755
  95 FILEMODE = 0555
  96 
  97 OBJSQLITE =
  98 LIBSQLITE = -lsqlite-sys
  99 $(NATIVE_BUILD)OBJSQLITE = $(ROOT)/lib/libsqlite-native.o
 100 $(NATIVE_BUILD)LIBSQLITE =
 101 
 102 OBJS += $(OBJSQLITE)
 103 LDLIBS += $(LIBSQLITE)
 104 




  61 CERRWARN += -_gcc=-Wno-unused-label
  62 CERRWARN += -_gcc=-Wno-unused-variable
  63 CERRWARN += -_gcc=-Wno-unused-function
  64 CERRWARN += $(CNOWARN_UNINIT)
  65 
  66 # strange false positive
  67 SMOFF += free
  68 
  69 MYLDLIBS = -lumem -luutil
  70 LDLIBS  += -lsecdb -lbsm $(MYLDLIBS)
  71 
  72 CLOBBERFILES += $(MYPROG:%=%-native)
  73 
  74 LIBUUTIL        = $(SRC)/lib/libuutil
  75 LIBSCF          = $(SRC)/lib/libscf
  76 
  77 SCRIPTFILE      = restore_repository
  78 ROOTSCRIPTFILE  = $(ROOTCMDDIR)/$(SCRIPTFILE)
  79 
  80 #
  81 # Native variant (used in ../seed).

  82 #
  83 $(NATIVE_BUILD)NATIVE_LIBS += libumem.so libc.so
  84 $(NATIVE_BUILD)CC =     $(NATIVECC)
  85 $(NATIVE_BUILD)LD =     $(NATIVELD)
  86 $(NATIVE_BUILD)CFLAGS = $(NATIVE_CFLAGS)
  87 $(NATIVE_BUILD)CPPFLAGS = $(MYCPPFLAGS) -I$(LIBUUTIL)/common -I$(LIBSCF)/inc
  88 $(NATIVE_BUILD)CPPFLAGS += -DNATIVE_BUILD
  89 $(NATIVE_BUILD)LDFLAGS = $(BDIRECT)
  90 $(NATIVE_BUILD)LDLIBS = -L$(ADJUNCT_PROTO)/usr/lib -R$(ADJUNCT_PROTO)/usr/lib \
  91                         -L$(LIBUUTIL)/native -R $(LIBUUTIL)/native $(MYLDLIBS)
  92 
  93 DIRMODE = 0755
  94 FILEMODE = 0555
  95 
  96 OBJSQLITE =
  97 LIBSQLITE = -lsqlite-sys
  98 $(NATIVE_BUILD)OBJSQLITE = $(ROOT)/lib/libsqlite-native.o
  99 $(NATIVE_BUILD)LIBSQLITE =
 100 
 101 OBJS += $(OBJSQLITE)
 102 LDLIBS += $(LIBSQLITE)
 103