From: Graham Gower Date: Mon, 10 Aug 2009 04:28:49 +0000 (+0200) Subject: icu: Fix compilation for mips using -fPIC on the rematch.o X-Git-Tag: Release-2010-05/1~2756 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c748884ee77eb4544e585bdc8bb3aac80626a52;p=openembedded.git icu: Fix compilation for mips using -fPIC on the rematch.o /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 --- diff --git a/recipes/icu/files/rematch-gcc-bug.patch b/recipes/icu/files/rematch-gcc-bug.patch index 4d47056ac5..5f516e396f 100644 --- a/recipes/icu/files/rematch-gcc-bug.patch +++ b/recipes/icu/files/rematch-gcc-bug.patch @@ -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