[oe-commits] Graham Gower : icu: Fix compilation for mips using -fPIC on the rematch.o

git version control git at git.openembedded.org
Mon Aug 10 04:53:48 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 2c748884ee77eb4544e585bdc8bb3aac80626a52
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=2c748884ee77eb4544e585bdc8bb3aac80626a52

Author: Graham Gower <graham.gower at gmail.com>
Date:   Mon Aug 10 06:28:49 2009 +0200

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 <zecke at selfish.org>

---

 recipes/icu/files/rematch-gcc-bug.patch |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/recipes/icu/files/rematch-gcc-bug.patch b/recipes/icu/files/rematch-gcc-bug.patch
index 4d47056..5f516e3 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
  





More information about the Openembedded-commits mailing list