patches/glibc/ports-2.13/530-alpha-fix-rtld-fPIC.patch
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Tue Jul 31 22:27:29 2012 +0200 (2012-07-31)
changeset 3018 7776e8369284
permissions -rw-r--r--
complibs/cloog: create missing m4 dir

Because we now patch configure.in and configure, the Makefile quicks
in a re-build rule as the source files are now more recent than the
bundled generated files, and that fails because the m4 directory
is missing, although on some systems where aclocal is not installed,
the re-build rule does nothing (except a warning).

Always create tht directory.

Reported-by: Per Arnold Blaasmo <per-arnold.blaasmo@atmel.com>
[Also thanks to Thomas De Schampheleire <patrickdepinguin@gmail.com>
for some digging works on this issue]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
yann@2438
     1
2009-05-26  Aurelien Jarno  <aurelien@aurel32.net>
yann@2438
     2
yann@2438
     3
	* sysdeps/alpha/Makefile (CFLAGS-rtld.c): add $(PIC-ccflag).
yann@2438
     4
yann@2438
     5
 ports/sysdeps/alpha/Makefile |    3 ++-
yann@2438
     6
 1 file changed, 2 insertions(+), 1 deletion(-)
yann@2438
     7
yann@2438
     8
diff -durN glibc-2.13.orig/glibc-ports-2.13/sysdeps/alpha/Makefile glibc-2.13/glibc-ports-2.13/sysdeps/alpha/Makefile
yann@2438
     9
--- glibc-2.13.orig/glibc-ports-2.13/sysdeps/alpha/Makefile	2009-05-16 10:36:20.000000000 +0200
yann@2438
    10
+++ glibc-2.13/glibc-ports-2.13/sysdeps/alpha/Makefile	2009-11-13 00:51:13.000000000 +0100
yann@2438
    11
@@ -35,7 +35,8 @@
yann@2438
    12
 
yann@2438
    13
 ifeq ($(subdir),elf)
yann@2438
    14
 # The ld.so startup code cannot use literals until it self-relocates.
yann@2438
    15
-CFLAGS-rtld.c = -mbuild-constants
yann@2438
    16
+# It uses more than 64k for the small data area.
yann@2438
    17
+CFLAGS-rtld.c = -mbuild-constants $(PIC-ccflag)
yann@2438
    18
 endif
yann@2438
    19
 
yann@2438
    20
 # Build everything with full IEEE math support, and with dynamic rounding;
yann@2438
    21
diff -durN glibc-2.13.orig/ports/sysdeps/alpha/Makefile glibc-2.13/ports/sysdeps/alpha/Makefile