Files
glibc/sysdeps/powerpc/Makefile
T

31 lines
895 B
Makefile
Raw Normal View History

1997-05-21 01:48:59 +00:00
ifeq ($(subdir),math)
1997-08-10 18:37:15 +00:00
libm-support += fenv_const fe_nomask t_sqrt
1997-05-21 01:48:59 +00:00
endif
1997-09-11 12:09:10 +00:00
ifeq ($(subdir),gmon)
sysdep_routines += ppc-mcount
endif
# On PPC, -fpic works until the GOT contains 2^15 bytes, and possibly
# more depending on how clever the linker is. Each GOT entry takes 4 bytes,
1998-06-11 11:32:21 +00:00
# so that's at least 8192 entries. Since libc only uses about 2000 entries,
1997-09-11 12:09:10 +00:00
# we want to use -fpic, because this generates fewer relocs.
ifeq (yes,$(build-shared))
1997-09-24 23:03:42 +00:00
pic-ccflag = -fpic
1997-09-11 12:09:10 +00:00
endif
1998-06-11 11:32:21 +00:00
ifeq ($(subdir),csu)
1997-09-11 12:09:10 +00:00
# The initfini generation code doesn't work in the presence of -fPIC, so
# we use -fpic instead which is much better.
CFLAGS-initfini.s = -g0 -fpic
1998-06-11 11:32:21 +00:00
# There is no benefit to using sdata for these objects, and the user
# of the library should be able to control what goes into sdata.
CFLAGS-init.o = -G0
CFLAGS-gmon-start.o = -G0
1997-09-11 12:09:10 +00:00
endif
1997-09-24 23:03:42 +00:00
ifeq ($(subdir),string)
CFLAGS-memcmp.c += -Wno-uninitialized
endif