board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / cups / 0004-Remove-PIE-flags-from-the-build.patch
blob492418f70d78a7152af319be0081dac060eb7b55
1 From b341a1e1fce48012fc5bcf39337488fd33210616 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Sun, 3 Jul 2016 12:20:21 +0200
4 Subject: [PATCH] Remove PIE flags from the build
6 Generating a statically linked binary built with PIE requires the
7 Scrt1.o file, which isn't part of Buildroot uClibc toolchains. To
8 solve this, we simply disable the PIE flags.
10 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11 ---
12 Makedefs.in | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
15 diff --git a/Makedefs.in b/Makedefs.in
16 index 3afef0a..299b297 100644
17 --- a/Makedefs.in
18 +++ b/Makedefs.in
19 @@ -142,7 +142,7 @@ IPPFIND_BIN = @IPPFIND_BIN@
20 IPPFIND_MAN = @IPPFIND_MAN@
21 LDFLAGS = -L../cgi-bin -L../cups -L../filter -L../ppdc \
22 -L../scheduler @LDARCHFLAGS@ \
23 - @LDFLAGS@ @RELROFLAGS@ @PIEFLAGS@ $(OPTIM)
24 + @LDFLAGS@ @RELROFLAGS@ $(OPTIM)
25 LINKCUPS = @LINKCUPS@ $(LIBGSSAPI) $(DNSSDLIBS) $(LIBZ)
26 LINKCUPSIMAGE = @LINKCUPSIMAGE@
27 LIBS = $(LINKCUPS) $(COMMONLIBS)
28 --
29 2.7.4