From a6989c3fdbab1e22be31bac0a910c7fc950c8f76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Fri, 5 Aug 2016 17:23:21 +0200 Subject: [PATCH] gcc-multilib: fix libiberty.a build with -fPIC --- .../patches/fix-libiberty_pic.patch | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch new file mode 100644 index 0000000000..1707d41e7f --- /dev/null +++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch @@ -0,0 +1,20 @@ +--- libiberty/Makefile.in 2016-08-05 17:07:27.540554328 +0200 ++++ libiberty/Makefile.in 2016-08-05 17:18:39.727540789 +0200 +@@ -112,7 +112,7 @@ + + INCDIR=$(srcdir)/$(MULTISRCTOP)../include + +-COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -I. -I$(INCDIR) $(HDEFINES) @ac_libiberty_warn_cflags@ ++COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) $(HDEFINES) @ac_libiberty_warn_cflags@ + + # Just to make sure we don't use a built-in rule with VPATH + .c.$(objext): +@@ -401,7 +401,7 @@ + demangle: $(ALL) $(srcdir)/cp-demangle.c + @echo "The standalone demangler, now named c++filt, is now" + @echo "a part of binutils." +- $(CC) @DEFS@ $(CFLAGS) $(CPPFLAGS) -I. -I$(INCDIR) $(HDEFINES) \ ++ $(CC) @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) $(HDEFINES) \ + $(srcdir)/cp-demangle.c -DSTANDALONE_DEMANGLER $(TARGETLIB) -o $@ + + ls: