[oe] [meta-multimedia][PATCH 2/2] xbmc: add patch to make 'ld-is-gold' work with configure

Khem Raj raj.khem at gmail.com
Mon Mar 11 17:11:46 UTC 2013


On Mar 11, 2013, at 3:39 AM, Koen Kooi <koen at dominion.thruhere.net> wrote:

> ++  #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

these set -x can be removed but if its upstream like that then fine. 





More information about the Openembedded-devel mailing list