Print this page
9852 enable ld(1) guidance and deflib assertions for the illumos build


  22 include         ../../../Makefile.cmd
  23 
  24 ROOTMANIFESTDIR=        $(ROOTSVCNETWORKROUTING)
  25 
  26 #
  27 # in.routed uses ancillary data features available through
  28 # the Open Group's Networking Services standard.  The following
  29 # pre-processor definitions enable these features.
  30 #
  31 _D_XOPEN_EXTN = -D_XOPEN_SOURCE=500 -D__EXTENSIONS__
  32 
  33 # Turning on __EXTENSIONS__ breaks lint, and we need __EXTENSIONS__.
  34 # This is really a lint problem, so around the breakage.
  35 LINTFLAGS += -erroff=E_FUNC_DECL_VAR_ARG2 -erroff=E_INCONS_VAL_TYPE_DECL2 \
  36              -erroff=E_INCONS_ARG_DECL2 -erroff=E_INCONS_ARG_USED2
  37 
  38 CPPFLAGS +=     $(_D_XOPEN_EXTN)
  39 CFLAGS +=       $(CCVERBOSE)
  40 CERRWARN +=     -_gcc=-Wno-parentheses
  41 CERRWARN +=     -_gcc=-Wno-uninitialized
  42 LDLIBS +=       -lxnet -lmd -lsocket
  43 CLEAN_FILES +=  $(ROUTEDOBJS) $(RTQUERYOBJS)
  44 CLOBBERFILES += $(ROUTEDPROG) $(RTQUERYPROG)
  45 #
  46 # Message catalog
  47 #
  48 POFILE=         in.routed.po
  49 POFILES=  $(POFILEOBJS:.o=.po)
  50 #
  51 $(ROUTEDPROG):= LDLIBS += -lkstat
  52 lint    :=      LDLIBS += -lkstat
  53 
  54 # This needs to be done because of SPARC/x86 differences.  On x86,
  55 # double has required alignment of only 4 bytes, but on SPARC it's 8
  56 # bytes.  This means that sockaddr_in can be casted to
  57 # sockaddr_storage without complaint on x86, but requires a
  58 # suppression directive on SPARC.
  59 LINTFLAGS +=    -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
  60 
  61 CTFCONVERT_HOOK = && $(CTFCONVERT_O)
  62 CTFMERGE_HOOK = && $(CTFMERGE) -L VERSION -o $@ $(ROUTEDOBJS)




  22 include         ../../../Makefile.cmd
  23 
  24 ROOTMANIFESTDIR=        $(ROOTSVCNETWORKROUTING)
  25 
  26 #
  27 # in.routed uses ancillary data features available through
  28 # the Open Group's Networking Services standard.  The following
  29 # pre-processor definitions enable these features.
  30 #
  31 _D_XOPEN_EXTN = -D_XOPEN_SOURCE=500 -D__EXTENSIONS__
  32 
  33 # Turning on __EXTENSIONS__ breaks lint, and we need __EXTENSIONS__.
  34 # This is really a lint problem, so around the breakage.
  35 LINTFLAGS += -erroff=E_FUNC_DECL_VAR_ARG2 -erroff=E_INCONS_VAL_TYPE_DECL2 \
  36              -erroff=E_INCONS_ARG_DECL2 -erroff=E_INCONS_ARG_USED2
  37 
  38 CPPFLAGS +=     $(_D_XOPEN_EXTN)
  39 CFLAGS +=       $(CCVERBOSE)
  40 CERRWARN +=     -_gcc=-Wno-parentheses
  41 CERRWARN +=     -_gcc=-Wno-uninitialized
  42 LDLIBS +=       -lxnet -lmd
  43 CLEAN_FILES +=  $(ROUTEDOBJS) $(RTQUERYOBJS)
  44 CLOBBERFILES += $(ROUTEDPROG) $(RTQUERYPROG)
  45 #
  46 # Message catalog
  47 #
  48 POFILE=         in.routed.po
  49 POFILES=  $(POFILEOBJS:.o=.po)
  50 #
  51 $(ROUTEDPROG):= LDLIBS += -lkstat
  52 lint    :=      LDLIBS += -lkstat
  53 
  54 # This needs to be done because of SPARC/x86 differences.  On x86,
  55 # double has required alignment of only 4 bytes, but on SPARC it's 8
  56 # bytes.  This means that sockaddr_in can be casted to
  57 # sockaddr_storage without complaint on x86, but requires a
  58 # suppression directive on SPARC.
  59 LINTFLAGS +=    -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
  60 
  61 CTFCONVERT_HOOK = && $(CTFCONVERT_O)
  62 CTFMERGE_HOOK = && $(CTFMERGE) -L VERSION -o $@ $(ROUTEDOBJS)