Print this page
NEX-5200 native tools must reliably use a native adjunct
Reviewed by: Hans Rosenfeld <hans.rosenfeld@nexenta.com>
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/svc/svccfg/Makefile
          +++ new/usr/src/cmd/svc/svccfg/Makefile
↓ open down ↓ 63 lines elided ↑ open up ↑
  64   64  $(NATIVE_BUILD)PROG = $(MYPROG:%=%-native)
  65   65  $(NATIVE_BUILD)OBJS = $(MYOBJS:%.o=%-native.o)
  66   66  
  67   67  # svccfg has a name clash with main() and libl.so.1.  However, svccfg must
  68   68  # still export a number of "yy*" (libl) interfaces.  Reduce all other symbols
  69   69  # to local scope.
  70   70  MAPFILES +=     $(MAPFILE.LEX) $(MAPFILE.NGB)
  71   71  MAPOPTS =       $(MAPFILES:%=-M%)
  72   72  
  73   73  MYCPPFLAGS =    -I ../common -I$(ADJUNCT_PROTO)/usr/include/libxml2
       74 +$(NATIVE_BUILD)MYCPPFLAGS =     -I ../common \
       75 +                -I$(NATIVE_ADJUNCT)/usr/include/libxml2
  74   76  CPPFLAGS +=     $(MYCPPFLAGS)
  75   77  LDFLAGS +=      $(MAPOPTS)
  76   78  
  77   79  CERRWARN +=     -_gcc=-Wno-unused-label
  78   80  CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  79   81  CERRWARN +=     -_gcc=-Wno-switch
  80   82  CERRWARN +=     -_gcc=-Wno-uninitialized
  81   83  CERRWARN +=     -_gcc=-Wno-unused-variable
  82   84  CERRWARN +=     -_gcc=-Wno-parentheses
  83   85  
↓ open down ↓ 23 lines elided ↑ open up ↑
 107  109  $(NATIVE_BUILD)CPPFLAGS = \
 108  110          -DNATIVE_BUILD \
 109  111          $(MYCPPFLAGS) \
 110  112          -I$(LIBSCF)/inc \
 111  113          -I$(LIBTECLA) \
 112  114          -I$(LIBUUTIL)/common
 113  115  $(NATIVE_BUILD)LDFLAGS =
 114  116  $(NATIVE_BUILD)LDLIBS = \
 115  117          -L$(LIBUUTIL)/native -R $(LIBUUTIL)/native \
 116  118          -L$(LIBSCF)/native -R $(LIBSCF)/native \
 117      -        -L$(ADJUNCT_PROTO)/usr/lib -R$(ADJUNCT_PROTO)/usr/lib \
      119 +        -L$(NATIVE_ADJUNCT)/usr/lib -R$(NATIVE_ADJUNCT)/usr/lib \
 118  120          $(SVCCFG_EXTRA_LIBS)
 119  121  
 120  122  svccfg_lex.o svccfg_grammar.o := CCVERBOSE =
 121  123  
 122  124  svccfg_help.po := XGETFLAGS =   -a
 123  125  
 124  126  .KEEP_STATE:
 125  127  .PARALLEL: $(OBJS) $(LNTS)
 126  128  
 127  129  all debug: $(PROG)
↓ open down ↓ 52 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX