From b2badd936561dc0e452c3211e58e645f1bf91375 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 22 Mar 2011 15:23:21 -0700 Subject: 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/usr/lib to LDFLAGS otherwise make tried to find the libs in /usr/lib Signed-off-by: Khem Raj Signed-off-by: Koen Kooi --- classes/mozilla.bbclass | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'classes') diff --git a/classes/mozilla.bbclass b/classes/mozilla.bbclass index 2b2f770d58..6d9492cfd6 100644 --- a/classes/mozilla.bbclass +++ b/classes/mozilla.bbclass @@ -26,6 +26,14 @@ export HOST_CXXFLAGS = "${BUILD_CXXFLAGS}" export HOST_LDFLAGS = "${BUILD_LDFLAGS}" export HOST_RANLIB = "${BUILD_RANLIB}" export HOST_AR = "${BUILD_AR}" +# Set the host libIDL stuff correctly. +export HOST_LIBIDL_CONFIG="PKG_CONFIG_PATH=${STAGING_LIBDIR_NATIVE}/pkgconfig pkg-config libIDL-2.0" +# Due to sysroot we need to sed out references to the target staging +# when building the native version of xpidl Symptons of the failure +# include "gthread.h:344: error: size of array 'type name' is negative" +export HOST_LIBIDL_CFLAGS="`${HOST_LIBIDL_CONFIG} --cflags | sed -e s:${STAGING_DIR_TARGET}::g`" +export HOST_LIBIDL_LIBS="`${HOST_LIBIDL_CONFIG} --libs`" + mozilla_do_configure() { ( @@ -44,14 +52,6 @@ mozilla_do_configure() { >> ${MOZCONFIG} fi - # Set the host libIDL stuff correctly. - export HOST_LIBIDL_CONFIG="PKG_CONFIG_PATH=${STAGING_LIBDIR_NATIVE}/pkgconfig pkg-config libIDL-2.0" - # Due to sysroot we need to sed out references to the target staging - # when building the native version of xpidl Symptons of the failure - # include "gthread.h:344: error: size of array 'type name' is negative" - export HOST_LIBIDL_CFLAGS="`${HOST_LIBIDL_CONFIG} --cflags | sed -e s:${STAGING_DIR_TARGET}:${STAGING_DIR_NATIVE}:g`" - export HOST_LIBIDL_LIBS="`${HOST_LIBIDL_CONFIG} --libs`" - if [ -e ${MOZ_OBJDIR}/Makefile ] ; then oe_runmake -f client.mk ${MOZ_OBJDIR}/Makefile \ ${MOZ_OBJDIR}/config.status -- cgit 1.2.3-korg