1From b341a1e1fce48012fc5bcf39337488fd33210616 Mon Sep 17 00:00:00 2001 2From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 3Date: Sun, 3 Jul 2016 12:20:21 +0200 4Subject: [PATCH] Remove PIE flags from the build 5 6Generating a statically linked binary built with PIE requires the 7Scrt1.o file, which isn't part of Buildroot uClibc toolchains. To 8solve this, we simply disable the PIE flags. 9 10[olivier tweak patch for 2.2.4] 11 12Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 13Signed-off-by: Olivier Schonken <olivier.schonken@gmail.com> 14[Fabrice: updated for 2.3.0] 15Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 16[Michael: updated for 2.3.3] 17Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> 18--- 19 Makedefs.in | 2 +- 20 1 file changed, 1 insertion(+), 1 deletion(-) 21 22diff --git a/Makedefs.in b/Makedefs.in 23index 5f1d32f..d669ea8 100644 24--- a/Makedefs.in 25+++ b/Makedefs.in 26@@ -155,7 +155,7 @@ ALL_CXXFLAGS = -I.. -D_CUPS_SOURCE $(CXXFLAGS) \ 27 $(ONDEMANDFLAGS) $(OPTIONS) 28 ALL_DSOFLAGS = -L../cups @ARCHFLAGS@ @RELROFLAGS@ $(DSOFLAGS) $(OPTIM) 29 ALL_LDFLAGS = -L../cups @LDARCHFLAGS@ @RELROFLAGS@ $(LDFLAGS) \ 30- @PIEFLAGS@ $(OPTIM) 31+ $(OPTIM) 32 ARCHFLAGS = @ARCHFLAGS@ 33 ARFLAGS = @ARFLAGS@ 34 BACKLIBS = @BACKLIBS@ 35-- 362.17.1 37 38