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


  56         fixup_tdescs.c \
  57         st_parse.c
  58 CVTOBJS=$(CVTSRCS:%.c=%.o)
  59 CVTLINTFILES = $(CVTSRCS:%.c=%.ln)
  60 
  61 MRGSRCS=$(GENSRCS) \
  62         ctfmerge.c
  63 MRGOBJS=$(MRGSRCS:%.c=%.o)
  64 MRGLINTFILES = $(MRGSRCS:%.c=%.ln)
  65 
  66 SRCS=$(CVTSRCS) $(MRGSRCS) $(CMPSRCS)
  67 OBJS=$(SRCS:%.c=%.o)
  68 LINTFILES=$(SRCS:%.c=%.ln)
  69 
  70 DWARFLDFLAGS    = \
  71         -L$(ROOTONBLDLIBMACH) \
  72         '-R$$ORIGIN/../../lib/$(MACH)' \
  73         -ldwarf
  74 DWARFCPPFLAGS   = -I../../dwarf/common
  75 
  76 LDFLAGS         += -L$(NATIVE_ADJUNCT)/lib
  77 LDLIBS          += -lz -lelf
  78 CPPFLAGS        += -D_REENTRANT
  79 CFLAGS          += $(CTF_FLAGS)
  80 LINTFLAGS       += -mnux
  81 
  82 CERRWARN        += -_gcc=-Wno-unused
  83 CERRWARN        += -_gcc=-Wno-uninitialized
  84 CERRWARN        += -_gcc=-Wno-switch
  85 
  86 C99MODE         = $(C99_ENABLE)
  87 
  88 ctfconvert      := LDFLAGS += $(DWARFLDFLAGS)
  89 
  90 dwarf.o dwarf.ln        := CPPFLAGS += $(DWARFCPPFLAGS)


  56         fixup_tdescs.c \
  57         st_parse.c
  58 CVTOBJS=$(CVTSRCS:%.c=%.o)
  59 CVTLINTFILES = $(CVTSRCS:%.c=%.ln)
  60 
  61 MRGSRCS=$(GENSRCS) \
  62         ctfmerge.c
  63 MRGOBJS=$(MRGSRCS:%.c=%.o)
  64 MRGLINTFILES = $(MRGSRCS:%.c=%.ln)
  65 
  66 SRCS=$(CVTSRCS) $(MRGSRCS) $(CMPSRCS)
  67 OBJS=$(SRCS:%.c=%.o)
  68 LINTFILES=$(SRCS:%.c=%.ln)
  69 
  70 DWARFLDFLAGS    = \
  71         -L$(ROOTONBLDLIBMACH) \
  72         '-R$$ORIGIN/../../lib/$(MACH)' \
  73         -ldwarf
  74 DWARFCPPFLAGS   = -I../../dwarf/common
  75 
  76 LDFLAGS         += -L$(NATIVE_ADJUNCT)/usr/lib
  77 LDLIBS          += -lz -lelf
  78 CPPFLAGS        += -D_REENTRANT
  79 CFLAGS          += $(CTF_FLAGS)
  80 LINTFLAGS       += -mnux
  81 
  82 CERRWARN        += -_gcc=-Wno-unused
  83 CERRWARN        += -_gcc=-Wno-uninitialized
  84 CERRWARN        += -_gcc=-Wno-switch
  85 
  86 C99MODE         = $(C99_ENABLE)
  87 
  88 ctfconvert      := LDFLAGS += $(DWARFLDFLAGS)
  89 
  90 dwarf.o dwarf.ln        := CPPFLAGS += $(DWARFCPPFLAGS)