Print this page
5262 libm needs to be carefully unifdef'd
5268 libm doesn't need to hide symbols which are already local
Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Reviewed by: Gordon Ross <gwr@nexenta.com>
Approved by: Gordon Ross <gwr@nexenta.com>
*** 29,53 ****
# values-xpg6, which would introduce an __xpg6 to our object with the C99
# flags set, causing us to default C99 libm behaviour on, breaking
# compatibility.
C99MODE =
! M4FLAGS = -D__STDC__ -DELFOBJ -DPIC
LDBLDIR_sparc = Q
LDBLDIR_i386 = LD
LDBLDIR = $(LDBLDIR_$(MACH))
LM_IL = $(LIBMDIR)/$(TARGET_ARCH)/src/locallibm.il
! CFLAGS += $(C_PICFLAGS) -D__INLINE $(XSTRCONST) $(LM_IL)
! CFLAGS64 += $(C_PICFLAGS) -D__INLINE $(XSTRCONST) $(LM_IL)
sparc_CFLAGS += -Wa,-xarch=v8plus
! CPPFLAGS += -DELFOBJ \
! -DLIBM_MT_FEX_SYNC \
! -I$(LIBMSRC)/C \
-I$(LIBMSRC)/$(LDBLDIR) -I$(LIBMDIR)/$(TARGET_ARCH)/src
# GCC needs __C99FEATURES__ such that the implementations of isunordered,
# isgreaterequal, islessequal, etc, exist. This is basically equivalent to
# providing no -xc99 to Studio, in that it gets us the C99 language features,
--- 29,51 ----
# values-xpg6, which would introduce an __xpg6 to our object with the C99
# flags set, causing us to default C99 libm behaviour on, breaking
# compatibility.
C99MODE =
! M4FLAGS = -D__STDC__ -DPIC
LDBLDIR_sparc = Q
LDBLDIR_i386 = LD
LDBLDIR = $(LDBLDIR_$(MACH))
LM_IL = $(LIBMDIR)/$(TARGET_ARCH)/src/locallibm.il
! CFLAGS += $(C_PICFLAGS) $(XSTRCONST) $(LM_IL)
! CFLAGS64 += $(C_PICFLAGS) $(XSTRCONST) $(LM_IL)
sparc_CFLAGS += -Wa,-xarch=v8plus
! CPPFLAGS += -I$(LIBMSRC)/C \
-I$(LIBMSRC)/$(LDBLDIR) -I$(LIBMDIR)/$(TARGET_ARCH)/src
# GCC needs __C99FEATURES__ such that the implementations of isunordered,
# isgreaterequal, islessequal, etc, exist. This is basically equivalent to
# providing no -xc99 to Studio, in that it gets us the C99 language features,