0004-Remove-PIE-flags-from-the-build.patch 1.2 KB

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