aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/mozilla/fennec/cross-config.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2011-03-22 15:23:21 -0700
committerKoen Kooi <koen@dominion.thruhere.net>2011-03-26 14:54:01 +0100
commitb2badd936561dc0e452c3211e58e645f1bf91375 (patch)
tree29e659a1da66ad94610df633542503aaac56449d /recipes/mozilla/fennec/cross-config.patch
parentcf15a13442fdb5218c24be12e872fefcb0519e4e (diff)
downloadopenembedded-b2badd936561dc0e452c3211e58e645f1bf91375.tar.gz
fennec: Make it build on ARM eglibc/uclibc
This patchset enables fennec to build again Upgrades to latest release tag Bunch of patches to fix uclibc build Disable few options notably --disable-elf-hack Add -L<sysroot>/usr/lib to LDFLAGS otherwise make tried to find the libs in /usr/lib Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'recipes/mozilla/fennec/cross-config.patch')
-rw-r--r--recipes/mozilla/fennec/cross-config.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/recipes/mozilla/fennec/cross-config.patch b/recipes/mozilla/fennec/cross-config.patch
new file mode 100644
index 0000000000..7eaba89c45
--- /dev/null
+++ b/recipes/mozilla/fennec/cross-config.patch
@@ -0,0 +1,29 @@
+We need to override setting variables so we check if the vars are already
+set then we do not reset them here
+
+-Khem
+
+Index: mozilla-central/build/autoconf/pkg.m4
+===================================================================
+--- mozilla-central.orig/build/autoconf/pkg.m4
++++ mozilla-central/build/autoconf/pkg.m4
+@@ -23,12 +23,16 @@ AC_DEFUN([PKG_CHECK_MODULES],
+ succeeded=yes
+
+ AC_MSG_CHECKING($1_CFLAGS)
+- $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
++ if test -z "$$1_CFLAGS"; then
++ $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
++ fi
+ AC_MSG_RESULT($$1_CFLAGS)
+
+ AC_MSG_CHECKING($1_LIBS)
+- ## Remove evil flags like -Wl,--export-dynamic
+- $1_LIBS="`$PKG_CONFIG --libs \"$2\" |sed s/-Wl,--export-dynamic//g`"
++ if test -z "$$1_LIBS"; then
++ ## Remove evil flags like -Wl,--export-dynamic
++ $1_LIBS="`$PKG_CONFIG --libs \"$2\" |sed s/-Wl,--export-dynamic//g`"
++ fi
+ AC_MSG_RESULT($$1_LIBS)
+ else
+ $1_CFLAGS=""