python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / pcc-libs / patches / build_PIC.patch
bloba11fcff6c3a4231db330b33e102f6720ad04044b
1 Respect passed CFLAGS to configure and force PIC object generation.
3 --- csu/linux/Makefile.orig 2011-02-24 12:59:36.988078869 +0100
4 +++ csu/linux/Makefile 2011-02-24 13:01:29.434007771 +0100
5 @@ -4,7 +4,7 @@ VERSION ?= 0.9.9
6 PCCLIBDIR ?= /usr/local/lib/pcc/$(TARGET)/$(VERSION)/lib
7 SRCDIR ?= .
9 -CFLAGS = -I$(SRCDIR)/$(MACH) -I$(SRCDIR) -Wall -Wstrict-prototypes -Wmissing-prototypes
10 +CFLAGS += -fpic -fPIC -I$(SRCDIR)/$(MACH) -I$(SRCDIR) -Wall -Wstrict-prototypes -Wmissing-prototypes
12 OBJS = crt0.o crt1.o gcrt1.o crti.o crtn.o crtbegin.o crtend.o
14 --- libpcc/Makefile.in.orig 2011-02-24 13:02:15.570566278 +0100
15 +++ libpcc/Makefile.in 2011-02-24 13:02:33.577393664 +0100
16 @@ -12,6 +12,7 @@ exec_prefix = @exec_prefix@
17 libdir = @libdir@
19 CC = @CC@
20 +CFLAGS = @CFLAGS@ -fpic -fPIC
21 TARGMACH = @targmach@
22 TARGOS = @targos@
23 TARGET = @target@
24 --- libsoftfloat/Makefile.in.orig 2011-02-24 13:02:54.937188695 +0100
25 +++ libsoftfloat/Makefile.in 2011-02-24 13:03:09.281050924 +0100
26 @@ -12,6 +12,7 @@ exec_prefix = @exec_prefix@
27 libdir = @libdir@
29 CC = @CC@
30 +CFLAGS = @CFLAGS@ -fpic -fPIC
31 TARGET = @target@
32 TARGMACH = @targmach@
33 VERSION = @version@