gtk-webcore/osb-jscore-0.5.0: Addition of patches for gcc4 & superh
authorKristoffer Ericson <kristoffer_e1@hotmail.com>
Mon, 18 Sep 2006 00:53:47 +0000 (00:53 +0000)
committerKristoffer Ericson <kristoffer_e1@hotmail.com>
Mon, 18 Sep 2006 00:53:47 +0000 (00:53 +0000)
* Addition of superh-aclocal.patch that adds sh* to host_cpu
* Addition of gcc4-fno-threads-statics patch for sh3
* Change .bb file to reflect patches (used append_sh3)

packages/gtk-webcore/osb-jscore-0.5.0/gcc4-fno-threadsafe-statics.patch [new file with mode: 0644]
packages/gtk-webcore/osb-jscore-0.5.0/superh-aclocal.patch [new file with mode: 0644]
packages/gtk-webcore/osb-jscore_0.5.0.bb

diff --git a/packages/gtk-webcore/osb-jscore-0.5.0/gcc4-fno-threadsafe-statics.patch b/packages/gtk-webcore/osb-jscore-0.5.0/gcc4-fno-threadsafe-statics.patch
new file mode 100644 (file)
index 0000000..44e69b2
--- /dev/null
@@ -0,0 +1,11 @@
+--- osb-jscore-0.5.0/configure.in_orig 2006-09-18 00:37:27.000000000 +0000
++++ osb-jscore-0.5.0/configure.in      2006-09-18 00:37:51.000000000 +0000
+@@ -61,7 +61,7 @@
+ fi
+ changequote([,])dnl
+-CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-rtti -nostdinc++"
++CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-rtti -nostdinc++ -fno-threadsafe-statics"
+ LDFLAGS="$LDFLAGS -nodefaultlibs -lgcc -lc -lm"
+ CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/kjs -I\$(top_srcdir)/pcre -I\$(top_srcdir)/" 
diff --git a/packages/gtk-webcore/osb-jscore-0.5.0/superh-aclocal.patch b/packages/gtk-webcore/osb-jscore-0.5.0/superh-aclocal.patch
new file mode 100644 (file)
index 0000000..706dead
--- /dev/null
@@ -0,0 +1,11 @@
+--- osb-jscore-0.5.0/aclocal.m4_orig   2006-09-18 00:49:32.000000000 +0000
++++ osb-jscore-0.5.0/aclocal.m4        2006-09-18 00:49:52.000000000 +0000
+@@ -4299,7 +4299,7 @@
+ # This must be Linux ELF.
+ linux-gnu*)
+   case $host_cpu in
+-  alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
++  alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | sh* | x86_64*)
+     lt_cv_deplibs_check_method=pass_all ;;
+   *)
+     # glibc up to 2.1.1 does not perform some relocations on ARM
index 5e38d59..3a1ff2b 100644 (file)
@@ -10,6 +10,9 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/gtk-webcore/osb-jscore-${PV}.tar.gz \
            file://missing-includes.patch;patch=1 \
            file://libm.patch;patch=1"
 
+SRC_URI_append_sh3 = " file://superh-aclocal.patch;patch=1 \
+                       file://gcc4-fno-threadsafe-statics.patch;patch=1"
+
 inherit autotools pkgconfig
 
 do_configure () {