[oe-commits] Patrik Dahlström : firefox: add correct CFLAGS and LIBS of libIDL-2.0

git version control git at git.openembedded.org
Mon Apr 25 21:41:26 UTC 2011


Module: openembedded.git
Branch: master
Commit: 03d5dcf53f6f0b8adca5a5c050133a7a57a63a29
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=03d5dcf53f6f0b8adca5a5c050133a7a57a63a29

Author: Patrik Dahlström <patda293 at student.liu.se>
Date:   Fri Apr 15 18:42:40 2011 +0200

firefox: add correct CFLAGS and LIBS of libIDL-2.0

* autoconf does not fill in any CFLAGS or LIBS for libIDL-2.0. This
  patch sets the appropriate flags in autoconf.mk.in for
  HOST_LIBIDL_CFLAGS and HOST_LIBIDL_LIBS.

The error message is the following [1][2].

	[…]
	gcc -o host_xpidl.o -c -isystem/home/neil/overo-oe/tmp-unstable/sysroots/x86_64-linux/usr/include -O2 -g -DXP_UNIX -O3  -DMDCPUCFG=\"md/_linux.cfg\"  -I. -I. -I../../../dist/include -I../../../dist/include/nsprpub  -I/home/neil/overo-oe/tmp-unstable/work/armv7a-angstrom-linux-gnueabi/firefox-3.6.8-r3/mozilla-1.9.2/dist/include/nspr -I/home/neil/overo-oe/tmp-unstable/work/armv7a-angstrom-linux-gnueabi/firefox-3.6.8-r3/mozilla-1.9.2/dist/include/nss      -I/home/neil/overo-oe/tmp-unstable/work/armv7a-angstrom-linux-gnueabi/firefox-3.6.8-r3/mozilla-1.9.2/dist/include/nspr xpidl.c
	[…]
	In file included from xpidl.c:42:
	xpidl.h:49: fatal error: glib.h: No such file or directoryIn file included from xpidl_util.c:42:
	xpidl.h:49: fatal error: glib.h: No such file or directory
	[…]

Why this did not occur earlier is not known. The patch is tested using `angstrom-2010.x` and `minimal` for `MACHINE = "beagleboard"`. It still does not build using `minimal-uclibc`.

[1] http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-April/031792.html
[2] http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-April/031959.html

Signed-off-by: Patrik Dahlström <patda293 at student.liu.se>
Signed-off-by: Paul Menzel <paulepanter at users.sourceforge.net>

---

 recipes/mozilla/firefox_3.6.8.bb |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/recipes/mozilla/firefox_3.6.8.bb b/recipes/mozilla/firefox_3.6.8.bb
index 04dde08..348c8c0 100644
--- a/recipes/mozilla/firefox_3.6.8.bb
+++ b/recipes/mozilla/firefox_3.6.8.bb
@@ -37,7 +37,9 @@ EXTRA_OECONF += " --enable-official-branding --disable-crashreporter"
 FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
 
 do_compile_prepend() {
-	cp ${WORKDIR}/jsautocfg.h ${S}/js/src/
-	sed -i "s|CPU_ARCH =|CPU_ARCH = ${TARGET_ARCH}|" security/coreconf/Linux.mk
+    cp ${WORKDIR}/jsautocfg.h ${S}/js/src/
+    sed -i "s|CPU_ARCH =|CPU_ARCH = ${TARGET_ARCH}|" security/coreconf/Linux.mk
+    sed -i "s|HOST_LIBIDL_CFLAGS = \@HOST_LIBIDL_CFLAGS\@|HOST_LIBIDL_CFLAGS = $(pkg-config --cflags libIDL-2.0)|" config/autoconf.mk.in
+    sed -i "s|HOST_LIBIDL_LIBS   = @HOST_LIBIDL_LIBS@|HOST_LIBIDL_LIBS = $(pkg-config --libs libIDL-2.0)|" config/autoconf.mk.in
 }
 





More information about the Openembedded-commits mailing list