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: