[oe-commits] Koen Kooi : xbmc: add patch to make 'ld-is-gold' work with configure
git at git.openembedded.org
git at git.openembedded.org
Fri May 3 14:08:08 UTC 2013
Module: meta-openembedded.git
Branch: master
Commit: c90d009eb40d0610583346c0ba19264377d50c5e
URL: http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=c90d009eb40d0610583346c0ba19264377d50c5e
Author: Koen Kooi <koen at dominion.thruhere.net>
Date: Thu May 2 06:04:20 2013 +0000
xbmc: add patch to make 'ld-is-gold' work with configure
The custom XBMC XB_FIND_SONAME macro doesn't work with the gold linker, backport a patch to fix it
Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
...igure-cope-with-ld-is-gold-DISTRO_FEATURE.patch | 43 ++++++++++++++++++++
.../recipes-mediacentre/xbmc/xbmc_git.bb | 4 ++
2 files changed, 47 insertions(+), 0 deletions(-)
diff --git a/meta-multimedia/recipes-mediacentre/xbmc/xbmc/0004-configure-cope-with-ld-is-gold-DISTRO_FEATURE.patch b/meta-multimedia/recipes-mediacentre/xbmc/xbmc/0004-configure-cope-with-ld-is-gold-DISTRO_FEATURE.patch
new file mode 100644
index 0000000..345e20e
--- /dev/null
+++ b/meta-multimedia/recipes-mediacentre/xbmc/xbmc/0004-configure-cope-with-ld-is-gold-DISTRO_FEATURE.patch
@@ -0,0 +1,43 @@
+From fd8f73826240aae543a41a2bfeea0056e2fe594d Mon Sep 17 00:00:00 2001
+From: Koen Kooi <koen at dominion.thruhere.net>
+Date: Mon, 11 Mar 2013 11:04:29 +0100
+Subject: [PATCH] configure: cope with ld-is-gold DISTRO_FEATURE
+
+Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>
+---
+
+Upstream-Stature: backport
+
+ configure.in | 12 +++++++-----
+ 1 files changed, 7 insertions(+), 5 deletions(-)
+
+diff --git a/configure.in b/configure.in
+index ef94683..c8b459b 100755
+--- a/configure.in
++++ b/configure.in
+@@ -18,9 +18,14 @@ tolower(){
+ # check for library basenames
+ AC_DEFUN([XB_FIND_SONAME],
+ [
++ #set -x
+ if [[ "$host_vendor" != "apple" ]]; then
+ AC_MSG_CHECKING([for lib$2 soname])
+ $1_FILENAME=$($CC -nostdlib -o /dev/null $LDFLAGS -l$2 -Wl,-M 2>/dev/null | grep "^LOAD.*$2" | awk '{V=2; print $V}')
++ if [[ -z $$1_FILENAME ]]; then
++ #try gold linker syntax
++ $1_FILENAME=$($CC -nostdlib -o /dev/null $LDFLAGS -l$2 -Wl,-t 3>&1 1>&2 2>&3 | grep "$2")
++ fi
+ if [[ ! -z $$1_FILENAME ]]; then
+ $1_SONAME=$(objdump -p $$1_FILENAME | grep "SONAME.*$2" | awk '{V=2; print $V}')
+ fi
+@@ -55,6 +60,7 @@ AC_DEFUN([XB_FIND_SONAME],
+ AC_MSG_RESULT([$$1_SONAME])
+ AC_SUBST($1_SONAME)
+ fi
++ #set +x
+ ])
+
+ # Function to push and pop libs and includes for a command
+--
+1.7.7.6
+
diff --git a/meta-multimedia/recipes-mediacentre/xbmc/xbmc_git.bb b/meta-multimedia/recipes-mediacentre/xbmc/xbmc_git.bb
index 6053489..e6600c1 100644
--- a/meta-multimedia/recipes-mediacentre/xbmc/xbmc_git.bb
+++ b/meta-multimedia/recipes-mediacentre/xbmc/xbmc_git.bb
@@ -15,6 +15,7 @@ SRC_URI = "git://github.com/xbmc/xbmc.git;branch=eden;protocol=git \
file://0001-configure-don-t-run-python-distutils-to-find-STAGING.patch \
file://0002-Revert-fixed-ios-Add-memory-barriers-to-atomic-Add-S.patch \
file://0003-Revert-fixed-ios-Add-memory-barriers-to-cas-assembly.patch \
+ file://0004-configure-cope-with-ld-is-gold-DISTRO_FEATURE.patch \
file://configure.in-Avoid-running-code.patch \
"
@@ -22,6 +23,9 @@ inherit autotools gettext python-dir
S = "${WORKDIR}/git"
+# breaks compilation
+CCACHE = ""
+
CACHED_CONFIGUREVARS += " \
ac_cv_path_PYTHON="${STAGING_BINDIR_NATIVE}/python-native/python" \
"
More information about the Openembedded-commits
mailing list