Print this page
5262 libm needs to be carefully unifdef'd
5268 libm doesn't need to hide symbols which are already local

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/Makefile.libm.com
          +++ new/usr/src/lib/libm/Makefile.libm.com
↓ open down ↓ 23 lines elided ↑ open up ↑
  24   24  ASSUFFIX        = $(ASSUFFIX_$(MACH))
  25   25  
  26   26  # C99MODE of neither enabled nor disabled is "no_lib", whereby we expect
  27   27  # C99-the-language, but don't modify the behaviour of library routines.  This
  28   28  # is VERY IMPORTANT, as -xc99=%all, for instance, would link us with
  29   29  # values-xpg6, which would introduce an __xpg6 to our object with the C99
  30   30  # flags set, causing us to default C99 libm behaviour on, breaking
  31   31  # compatibility.
  32   32  C99MODE         =
  33   33  
  34      -M4FLAGS         = -D__STDC__ -DELFOBJ -DPIC
       34 +M4FLAGS         = -D__STDC__ -DPIC
  35   35  
  36   36  LDBLDIR_sparc   = Q
  37   37  LDBLDIR_i386    = LD
  38   38  LDBLDIR         = $(LDBLDIR_$(MACH))
  39   39  
  40   40  LM_IL           = $(LIBMDIR)/$(TARGET_ARCH)/src/locallibm.il
  41   41  
  42      -CFLAGS          += $(C_PICFLAGS) -D__INLINE $(XSTRCONST) $(LM_IL)
  43      -CFLAGS64        += $(C_PICFLAGS) -D__INLINE $(XSTRCONST) $(LM_IL)
       42 +CFLAGS          += $(C_PICFLAGS) $(XSTRCONST) $(LM_IL)
       43 +CFLAGS64        += $(C_PICFLAGS) $(XSTRCONST) $(LM_IL)
  44   44  sparc_CFLAGS    += -Wa,-xarch=v8plus
  45   45  
  46      -CPPFLAGS        += -DELFOBJ \
  47      -                -DLIBM_MT_FEX_SYNC \
  48      -                -I$(LIBMSRC)/C \
       46 +CPPFLAGS        += -I$(LIBMSRC)/C \
  49   47                  -I$(LIBMSRC)/$(LDBLDIR) -I$(LIBMDIR)/$(TARGET_ARCH)/src
  50   48  
  51   49  # GCC needs __C99FEATURES__ such that the implementations of isunordered,
  52   50  # isgreaterequal, islessequal, etc, exist.  This is basically equivalent to
  53   51  # providing no -xc99 to Studio, in that it gets us the C99 language features,
  54   52  # but not values-xpg6, the reason for which is outline with C99MODE.
  55   53  CFLAGS          += -_gcc=-D__C99FEATURES__
  56   54  CFLAGS64        += -_gcc=-D__C99FEATURES__
  57   55  
  58   56  # libm depends on integer overflow characteristics
↓ open down ↓ 35 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX