[PATCH] Build initfini.s with -fno-unit-at-a-time for ppc/ppc64.
Dwayne Grant McConnell
dgm69@us.ibm.com
Wed Aug 3 19:18:00 GMT 2005
This patch adds $(fno-unit-at-a-time) to CFLAGS for initfini.s when
building ppc/ppc64. This a build break when building ppc/ppc64 glibc with
gcc 4.1.
--
Dwayne Grant McConnell <dgm69@us.ibm.com>
Lotus Notes: Dwayne McConnell/Austin/IBM@IBMUS
2005-08-03 Dwayne Grant McConnell <dgm69@us.ibm.com>
* sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Add
$(fno-unit-at-a-time)
* sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
Likewise.
diff -urN libc.orig/sysdeps/powerpc/powerpc32/Makefile libc/sysdeps/powerpc/powerpc32/Makefile
--- libc.orig/sysdeps/powerpc/powerpc32/Makefile 2003-10-22 16:30:02.000000000 -0500
+++ libc/sysdeps/powerpc/powerpc32/Makefile 2005-08-03 10:21:45.306025516 -0500
@@ -21,7 +21,7 @@
ifneq ($(elf),no)
# 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 -O1
+CFLAGS-initfini.s = -g0 -fpic -O1 $(fno-unit-at-a-time)
# 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.
diff -urN libc.orig/sysdeps/powerpc/powerpc64/Makefile libc/sysdeps/powerpc/powerpc64/Makefile
--- libc.orig/sysdeps/powerpc/powerpc64/Makefile 2004-10-06 17:05:14.000000000 -0500
+++ libc/sysdeps/powerpc/powerpc64/Makefile 2005-08-03 10:20:56.886407927 -0500
@@ -14,7 +14,7 @@
ifneq ($(elf),no)
# The initfini generation code doesn't work in the presence of -g1 or
# higher, so we use -g0.
-CFLAGS-initfini.s = -g0 -fpic -O1
+CFLAGS-initfini.s = -g0 -fpic -O1 $(fno-unit-at-a-time)
endif
endif
More information about the Libc-alpha
mailing list