[oe-commits] : Consider i386 when making XMLCALL as decl type.

OE GIT Trial gittrial at amethyst.openembedded.net
Fri Aug 1 22:59:21 UTC 2008


Module: OE.dev
Branch: master
Commit: ede8295b83183d714d0d251e563b8392f2b7c172
URL:    http://gitweb.openembedded.net//OE.dev.git/?a=commit;h=ede8295b83183d714d0d251e563b8392f2b7c172

Author:  <khem at openembedded.org>
Date:   Fri Aug  1 21:39:13 2008 +0000

Consider i386 when making XMLCALL as decl type.
This fixes gdb build failures on x86_64 host machines.

---

 packages/expat/expat-1.95.7/expat-XMLCALL.patch |   17 +++++++++++++++++
 packages/expat/expat_1.95.7.bb                  |    6 ++++--
 2 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/packages/expat/expat-1.95.7/expat-XMLCALL.patch b/packages/expat/expat-1.95.7/expat-XMLCALL.patch
new file mode 100644
index 0000000..c688f06
--- /dev/null
+++ b/packages/expat/expat-1.95.7/expat-XMLCALL.patch
@@ -0,0 +1,17 @@
+---
+ lib/expat.h |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: expat-1.95.7/lib/expat.h
+===================================================================
+--- expat-1.95.7.orig/lib/expat.h	2008-07-31 15:56:39.000000000 -0700
++++ expat-1.95.7/lib/expat.h	2008-07-31 15:58:38.000000000 -0700
+@@ -45,7 +45,7 @@
+ #ifndef XMLCALL
+ #if defined(XML_USE_MSC_EXTENSIONS)
+ #define XMLCALL __cdecl
+-#elif defined(__GNUC__)
++#elif defined(__GNUC__) && defined(__i386) && !defined(__INTEL_COMPILER)
+ #define XMLCALL __attribute__((cdecl))
+ #else
+ /* For any platform which uses this definition and supports more than
diff --git a/packages/expat/expat_1.95.7.bb b/packages/expat/expat_1.95.7.bb
index a4dda4d..7b48305 100644
--- a/packages/expat/expat_1.95.7.bb
+++ b/packages/expat/expat_1.95.7.bb
@@ -1,7 +1,9 @@
 require expat.inc
-PR = "r1"
+PR = "r2"
 
-SRC_URI += "file://autotools.patch;patch=1"
+SRC_URI += "file://autotools.patch;patch=1 \
+	    file://expat-XMLCALL.patch;patch=1 \
+	   "
 
 inherit lib_package
 





More information about the Openembedded-commits mailing list