patches/glibc/ports-2.13/530-alpha-fix-rtld-fPIC.patch
author Anthony Foiani <anthony.foiani@gmail.com>
Thu Apr 26 19:55:59 2012 -0600 (2012-04-26)
changeset 2939 58974be61289
permissions -rw-r--r--
Allow multi-word "install" command.

Autoconf can determine that the correct install command includes flags,
e.g., "/usr/bin/install -c". When using this as a command, we can't
enclose the value in double-quotes, as that makes some shells use the
whole expression as a filename:

# this is the value returned by autoconf and stored in CT_install
$ ins="/usr/bin/install -c"

# if we call it with quotes, the command is not found
$ "${ins}"
bash: /usr/bin/install -c: No such file or directory

# removing the quotes lets it work as expected
$ ${ins}
/usr/bin/install: missing file operand
Try `/usr/bin/install --help' for more information.

Signed-Off-By: Anthony Foiani <anthony.foiani@gmail.com>
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