Print this page
4146 getconf(1) does not support XATTR_ENABLED, XATTR_EXISTS, SATTR_ENABLED, SATTR_EXISTS keys
Reviewed by: Cedric Blancher <cedric.blancher@gmail.com>
Reviewed by: Irek Szczesniak <iszczesniak@gmail.com>


  20 # CDDL HEADER END
  21 #
  22 #
  23 # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 
  27 PROG= getconf
  28 XPG4PROG= getconf
  29 XPG6PROG= getconf
  30 X4= objs.xpg4
  31 X6= objs.xpg6
  32 OBJS= getconf.o
  33 XPG4EXOBJS= $(X4)/getconf.o
  34 XPG6EXOBJS= $(X6)/getconf.o
  35 
  36 include ../Makefile.cmd
  37 
  38 XPG4EXOBJS += values-xpg4.o
  39 CFLAGS += $(CCVERBOSE)
  40 CERRWARN += -_gcc=-Wno-parentheses
  41 # XPG4
  42 $(XPG4) := CFLAGS += -D_XOPEN_SOURCE -I$(SRC)/lib/libc/inc
  43 
  44 # XPG6MODE:  Depending on the version of the compiler, the value of
  45 # __STDC_VERSION__ may differ even in the presence of the same compilation
  46 # options. The default compilation mode for Sun compilers that support the
  47 # C99 standard is -xc99=all,no_lib. C99MODE= is equivalent to -xc99=all,no_lib.
  48 # This translates to C99 semantics without the C99 library specific behaviors
  49 # and dependencies.
  50 #
  51 # For pre-5.7 compilers (unless patched with 117551-04 or 117552-05), in the
  52 # default compilation mode, __STDC_VERSION__ was defined to be 199901L. For
  53 # 5.7 and on compilers, __STDC_VERSION__ defaults to 199409L in order to 
  54 # maintain source compatibility. Neither of these cases results in the 
  55 # importing of /usr/lib/values-xpg6.o, so we need to either manually import 
  56 # it via linking with a local version of the object, or set -xc99=%all which
  57 # by default imports /usr/lib/values-xpg6.o. C99MODE=C99_ENABLE is equivalent
  58 # to -xc99=all. If C99_ENABLE is defined and we also attempt to link with a 
  59 # local version of values-xpg6.o, an error will occur due to multiple 
  60 # definitions for __xpg4 and __xpg6. Because /usr/lib/values-xpg6.o was




  20 # CDDL HEADER END
  21 #
  22 #
  23 # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 
  27 PROG= getconf
  28 XPG4PROG= getconf
  29 XPG6PROG= getconf
  30 X4= objs.xpg4
  31 X6= objs.xpg6
  32 OBJS= getconf.o
  33 XPG4EXOBJS= $(X4)/getconf.o
  34 XPG6EXOBJS= $(X6)/getconf.o
  35 
  36 include ../Makefile.cmd
  37 
  38 XPG4EXOBJS += values-xpg4.o
  39 CFLAGS += $(CCVERBOSE)

  40 # XPG4
  41 $(XPG4) := CFLAGS += -D_XOPEN_SOURCE -I$(SRC)/lib/libc/inc
  42 
  43 # XPG6MODE:  Depending on the version of the compiler, the value of
  44 # __STDC_VERSION__ may differ even in the presence of the same compilation
  45 # options. The default compilation mode for Sun compilers that support the
  46 # C99 standard is -xc99=all,no_lib. C99MODE= is equivalent to -xc99=all,no_lib.
  47 # This translates to C99 semantics without the C99 library specific behaviors
  48 # and dependencies.
  49 #
  50 # For pre-5.7 compilers (unless patched with 117551-04 or 117552-05), in the
  51 # default compilation mode, __STDC_VERSION__ was defined to be 199901L. For
  52 # 5.7 and on compilers, __STDC_VERSION__ defaults to 199409L in order to 
  53 # maintain source compatibility. Neither of these cases results in the 
  54 # importing of /usr/lib/values-xpg6.o, so we need to either manually import 
  55 # it via linking with a local version of the object, or set -xc99=%all which
  56 # by default imports /usr/lib/values-xpg6.o. C99MODE=C99_ENABLE is equivalent
  57 # to -xc99=all. If C99_ENABLE is defined and we also attempt to link with a 
  58 # local version of values-xpg6.o, an error will occur due to multiple 
  59 # definitions for __xpg4 and __xpg6. Because /usr/lib/values-xpg6.o was