summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-06-10 22:12:55 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-06-10 22:12:55 +0100
commit57c7dda03e5067e60177d06d08fdd4322225148c (patch)
treeca85eb63c37e9317c948bf116c12285c4323cc12
parentea45876d7ba3d4d2b132fd38a2c40834a2385f34 (diff)
downloadpoky-57c7dda03e5067e60177d06d08fdd4322225148c.tar.gz
js: Fix mips build and other architecture inconsistency
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r--meta/packages/js/files/usepic.patch24
-rw-r--r--meta/packages/js/js_1.5.bb4
2 files changed, 27 insertions, 1 deletions
diff --git a/meta/packages/js/files/usepic.patch b/meta/packages/js/files/usepic.patch
new file mode 100644
index 0000000000..ddd31be9cb
--- /dev/null
+++ b/meta/packages/js/files/usepic.patch
@@ -0,0 +1,24 @@
1Mips needs -fPIC to compile properly. These tests are broken anyway as they test
2the build system architecture, not the target. This is a hack.
3
4RP 10/6/2010
5
6Index: src/config/Linux_All.mk
7===================================================================
8--- src.orig/config/Linux_All.mk 2010-06-10 22:09:43.000000000 +0100
9+++ src/config/Linux_All.mk 2010-06-10 22:09:55.000000000 +0100
10@@ -90,14 +90,10 @@
11 # Use the editline library to provide line-editing support.
12 JS_EDITLINE = 1
13
14-ifeq ($(CPU_ARCH),x86_64)
15 # Use VA_COPY() standard macro on x86-64
16 # FIXME: better use it everywhere
17 OS_CFLAGS += -DHAVE_VA_COPY -DVA_COPY=va_copy
18-endif
19
20-ifeq ($(CPU_ARCH),x86_64)
21 # We need PIC code for shared libraries
22 # FIXME: better patch rules.mk & fdlibm/Makefile*
23 OS_CFLAGS += -DPIC -fPIC
24-endif
diff --git a/meta/packages/js/js_1.5.bb b/meta/packages/js/js_1.5.bb
index 1249268a4f..ce763338d3 100644
--- a/meta/packages/js/js_1.5.bb
+++ b/meta/packages/js/js_1.5.bb
@@ -4,7 +4,9 @@ SECTION = "libs"
4DEPENDS = "readline" 4DEPENDS = "readline"
5SRC_URI = "http://ftp.mozilla.org/pub/mozilla.org/js/older-packages/js-1.5.tar.gz \ 5SRC_URI = "http://ftp.mozilla.org/pub/mozilla.org/js/older-packages/js-1.5.tar.gz \
6 file://link_with_gcc.patch;patch=1 \ 6 file://link_with_gcc.patch;patch=1 \
7 file://jsautocfg.h" 7 file://usepic.patch;patch=1 \
8 file://jsautocfg.h"
9PR = "r1"
8 10
9S = "${WORKDIR}/js/src" 11S = "${WORKDIR}/js/src"
10 12