aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/powerpc/Makefile
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-08-20 21:27:26 +0000
committerRoland McGrath <roland@gnu.org>2002-08-20 21:27:26 +0000
commitc8f3e6bcf0b3c1084370d5de22acf5cf38773881 (patch)
tree7fbaf450e7e5afc42cae50862707a00ef5f30d63 /sysdeps/powerpc/Makefile
parent070cadeb5ff502d0fd57b6241b65d3724a70d0d0 (diff)
downloadglibc-c8f3e6bcf0b3c1084370d5de22acf5cf38773881.tar
glibc-c8f3e6bcf0b3c1084370d5de22acf5cf38773881.tar.gz
glibc-c8f3e6bcf0b3c1084370d5de22acf5cf38773881.tar.bz2
glibc-c8f3e6bcf0b3c1084370d5de22acf5cf38773881.zip
Fix ABI compatibility with libc compiled with old tools on powerpc.
Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com> and Jack Howarth <howarth@bromo.med.uc.edu>. * sysdeps/powerpc/Makefile [$(have-protected) = yes] (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables, pass -DHAVE_DOT_HIDDEN for these files. * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf, __floatdisf. * sysdeps/powerpc/divdi3.c: New file. * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ... * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
Diffstat (limited to 'sysdeps/powerpc/Makefile')
-rw-r--r--sysdeps/powerpc/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/powerpc/Makefile b/sysdeps/powerpc/Makefile
index ce8fa7c175..0737f6f2d3 100644
--- a/sysdeps/powerpc/Makefile
+++ b/sysdeps/powerpc/Makefile
@@ -37,6 +37,10 @@ CFLAGS-gmon-start.o = -G0
endif
ifeq (yes,$(build-shared))
# Compatibility
+ifeq (yes,$(have-protected))
+CPPFLAGS-divdi3.c = -DHAVE_DOT_HIDDEN
+CPPFLAGS-libgcc-compat.S = -DHAVE_DOT_HIDDEN
+endif
sysdep_routines += divdi3 libgcc-compat
shared-only-routines += divdi3 libgcc-compat
endif