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>
13 1 file changed, 1 insertion(+), 1 deletion(-)
15 diff --git a/Makedefs.in b/Makedefs.in
16 index 3afef0a..299b297 100644
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)