4 SRC_URI = "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${PV}/source/firefox-${PV}-source.tar.bz2 \
6 file://security-cross.patch;patch=1 \
7 file://jsautocfg-dontoverwrite.patch;patch=1 \
8 file://Bug339782.additional.fix.diff;patch=1 \
9 file://Bug385583.nspr.jmp_buf.eabi.diff;patch=1 \
10 file://Bug405992.atomic.nspr.diff;patch=1 \
11 file://random_to_urandom.diff;patch=1 \
12 file://jemalloc-tls.patch;patch=1 \
13 file://0001-Remove-Werror-from-build.patch;patch=1 \
14 file://0002-Fix-security-cross-compile-cpu-detection-error.patch;patch=1 \
15 file://plugins-dir.patch;patch=1 \
18 S = "${WORKDIR}/mozilla"
20 # This is missing the wchart.diff patch and can't be compiled with a recent gcc
21 DEFAULT_PREFERENCE = "-1"
26 FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
28 do_compile_prepend() {
29 cp ${WORKDIR}/jsautocfg.h ${S}/js/src/
30 sed -i "s|CPU_ARCH =|CPU_ARCH = ${TARGET_ARCH}|" security/coreconf/Linux.mk
34 install -d ${STAGING_INCDIR}/firefox-${PV}
37 headers=`find . -name "*.h"`
40 install -D -m 0644 $f ${STAGING_INCDIR}/firefox-${PV}/
42 # removes 2 lines that call absent headers
43 sed -e '178,179d' ${STAGING_INCDIR}/firefox-${PV}/nsIServiceManager.h