Skip to contentSkip to conversation

fix libicu compilation with GCC-4.4 on mips

PATCH Applied Graham Gower 2 participants 3 messages Aug 5, 2009 – Aug 10, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix libicu compilation with GCC-4.4 on mips

Not sure if this one is mips specific or not, but linking fails due to
missing -fPIC on 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

Perhaps someone who experienced the (arm specific?) gcc bug mentioned in commit 798c780a3a016e56d9b8849cf8a07521b6e402a9 can confirm this fix does not trigger the same bug?

-Graham

recipes/icu/files/rematch-gcc-bug.patch +3 -1
index 4d47056..5f516e3 100644
@@ -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
 
#1 lore raw
Quoted 11 lines · On Wednesday 05 August 2009 02:28:55 Graham Gower wrote:

Not sure if this one is mips specific or not, but linking fails due to missing -fPIC on 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

Perhaps someone who experienced the (arm specific?) gcc bug mentioned in commit 798c780a3a016e56d9b8849cf8a07521b6e402a9 can confirm this fix does not trigger the same bug?

i will test an arm build for you.