Print this page
native tools must reliably use a native adjunct, even if that's inconvenient
While it is perhaps convenient for native tools to use updated versions
of certain things like libxml it is imperative that those versions are
_also_ build for the build machine.  Thus they need to be in the native
adjunct (even if that native adjunct is thus not /).
Fix the native adjunct to be rooted similarly to the adjunct proto (that
is, at /), and fix SMF to use it correctly

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/svc/configd/Makefile
          +++ new/usr/src/cmd/svc/configd/Makefile
↓ open down ↓ 71 lines elided ↑ open up ↑
  72   72  
  73   73  #
  74   74  # Native variant (used in ../seed)
  75   75  #
  76   76  $(NATIVE_BUILD)CC =     $(NATIVECC)
  77   77  $(NATIVE_BUILD)LD =     $(NATIVELD)
  78   78  $(NATIVE_BUILD)CFLAGS = $(NATIVE_CFLAGS)
  79   79  $(NATIVE_BUILD)CPPFLAGS = $(MYCPPFLAGS) -I$(LIBUUTIL)/common -I$(LIBSCF)/inc
  80   80  $(NATIVE_BUILD)CPPFLAGS += -DNATIVE_BUILD
  81   81  $(NATIVE_BUILD)LDFLAGS =
  82      -$(NATIVE_BUILD)LDLIBS = -L$(ADJUNCT_PROTO)/usr/lib -R$(ADJUNCT_PROTO)/usr/lib \
       82 +$(NATIVE_BUILD)LDLIBS = -L$(NATIVE_ADJUNCT)/usr/lib \
       83 +                        -R$(NATIVE_ADJUNCT)/usr/lib \
  83   84                          -L$(LIBUUTIL)/native -R $(LIBUUTIL)/native $(MYLDLIBS)
  84   85  
  85   86  DIRMODE = 0755
  86   87  FILEMODE = 0555
  87   88  
  88   89  OBJSQLITE =
  89   90  LIBSQLITE = -lsqlite-sys
  90   91  $(NATIVE_BUILD)OBJSQLITE = $(ROOT)/lib/libsqlite-native.o
  91   92  $(NATIVE_BUILD)LIBSQLITE =
  92   93  
↓ open down ↓ 40 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX