gcc-multilib: fix libiberty.a build with -fPIC
This commit is contained in:
parent
649543d584
commit
a6989c3fdb
|
@ -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:
|
Loading…
Reference in New Issue