icu: Fix compilation for mips using -fPIC on the rematch.o
authorGraham Gower <graham.gower@gmail.com>
Mon, 10 Aug 2009 04:28:49 +0000 (06:28 +0200)
committerHolger Hans Peter Freyther <zecke@selfish.org>
Mon, 10 Aug 2009 04:49:56 +0000 (06:49 +0200)
/home/grg/oe/tmp/cross/mipsel/lib/gcc/mipsel-angstrom-linux/4.4.1/../../../../mipsel-angstrom-linux/bin/ld: rematch.o: relocation R_MIPS_HI16 against `__gnu_local_gp' can not be used when making a shared object; recompile with -fPIC

http://patchwork.openembedded.org/patch/920/

Signed-Off-By: Holger Hans Peter Freyther <zecke@selfish.org>
recipes/icu/files/rematch-gcc-bug.patch

index 4d47056..5f516e3 100644 (file)
@@ -5,7 +5,7 @@
  all-local: $(ALL_TARGETS)
  
 +rematch.o: $(srcdir)/rematch.cpp
-+      $(CXX) $(CPPFLAGS) $(DEFS) -c -o $@ $<
++      $(CXX) -fPIC $(CPPFLAGS) $(DEFS) -c -o $@ $<
 +
  install-local: install-headers install-library