patches/glibc/ports-2.13/530-alpha-fix-rtld-fPIC.patch
author Michael Hope <michael.hope@linaro.org>
Thu Sep 29 12:27:54 2011 +1300 (2011-09-29)
changeset 2694 2c01a02334ea
permissions -rw-r--r--
Makefile: use phony targets

Add 'build', 'build-*', and 'install' as phony targets to the top level
Makefile.

I tend to do everything in tree with the build in a directory called
'build'. This interfered with the target 'build', making it think the
target was up to date, and stopping scripts/crosstool-NG.sh from being
regenerated.

Added 'install' as I often set the prefix to $PWD/install.

Signed-off-by: Michael Hope <michael.hope@linaro.org>
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