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


  53 COMDIR =        ../../../common/svc
  54 
  55 CFLAGS +=       $(CCVERBOSE) -Wp,-xc99=%all
  56 CPPFLAGS +=     -I../inc -I../../common/inc -I$(COMDIR) -I$(ROOTHDRDIR)
  57 $(NOT_RELEASE_BUILD) CPPFLAGS += -DFASTREBOOT_DEBUG
  58 
  59 CERRWARN +=     -_gcc=-Wno-switch
  60 CERRWARN +=     -_gcc=-Wno-char-subscripts
  61 CERRWARN +=     -_gcc=-Wno-unused-label
  62 CERRWARN +=     -_gcc=-Wno-parentheses
  63 CERRWARN +=     -_gcc=-Wno-uninitialized
  64 
  65 #
  66 # For native builds, we compile and link against the native version
  67 # of libuutil.
  68 #
  69 LIBUUTIL =      $(SRC)/lib/libuutil
  70 MY_NATIVE_CPPFLAGS =\
  71                 -DNATIVE_BUILD $(DTEXTDOM) \
  72                 -I../inc -I$(COMDIR) -I$(LIBUUTIL)/common -I$(ROOTHDRDIR)
  73 MY_NATIVE_LDLIBS = -L$(LIBUUTIL)/native -R$(LIBUUTIL)/native -luutil -lc -lgen \
  74                    -lnsl -lnvpair

  75 MY_NATIVE_LDLIBS_i386 = -lsmbios
  76 MY_NATIVE_LDLIBS += $(MY_NATIVE_LDLIBS_$(MACH))
  77 
  78 .KEEP_STATE:
  79 
  80 all:
  81 
  82 lint: lintcheck
  83 
  84 include ../../Makefile.targ


  53 COMDIR =        ../../../common/svc
  54 
  55 CFLAGS +=       $(CCVERBOSE) -Wp,-xc99=%all
  56 CPPFLAGS +=     -I../inc -I../../common/inc -I$(COMDIR) -I$(ROOTHDRDIR)
  57 $(NOT_RELEASE_BUILD) CPPFLAGS += -DFASTREBOOT_DEBUG
  58 
  59 CERRWARN +=     -_gcc=-Wno-switch
  60 CERRWARN +=     -_gcc=-Wno-char-subscripts
  61 CERRWARN +=     -_gcc=-Wno-unused-label
  62 CERRWARN +=     -_gcc=-Wno-parentheses
  63 CERRWARN +=     -_gcc=-Wno-uninitialized
  64 
  65 #
  66 # For native builds, we compile and link against the native version
  67 # of libuutil.
  68 #
  69 LIBUUTIL =      $(SRC)/lib/libuutil
  70 MY_NATIVE_CPPFLAGS =\
  71                 -DNATIVE_BUILD $(DTEXTDOM) \
  72                 -I../inc -I$(COMDIR) -I$(LIBUUTIL)/common -I$(ROOTHDRDIR)
  73 MY_NATIVE_LDLIBS = -L$(LIBUUTIL)/native -R$(LIBUUTIL)/native \
  74                    -L$(NATIVE_ADJUNCT)/usr/lib -R$(NATIVE_ADJUNCT)/usr/lib \
  75                    -luutil -lc -lgen -lnsl -lnvpair
  76 MY_NATIVE_LDLIBS_i386 = -lsmbios
  77 MY_NATIVE_LDLIBS += $(MY_NATIVE_LDLIBS_$(MACH))
  78 
  79 .KEEP_STATE:
  80 
  81 all:
  82 
  83 lint: lintcheck
  84 
  85 include ../../Makefile.targ