Ticket #10742: 0001-mythmusic-Fix-cross-compiling-for-win32.patch

File 0001-mythmusic-Fix-cross-compiling-for-win32.patch, 1.5 KB (added by Lawrence Rust <lvr@…>, 12 years ago)
  • mythplugins/configure

    From aa7326c35af64eab8fc2494dedada9db9ed22af2 Mon Sep 17 00:00:00 2001
    From: Lawrence Rust <lvr@softsystem.co.uk>
    Date: Sun, 20 May 2012 20:30:33 +0200
    Subject: [PATCH] mythmusic: Fix cross compiling for win32
    
    When cross compiling for win32, mythplugins configure fails to find a
    number of required libraries for mythmusic, which is then disabled.
    
    This patch adds the correct library search paths and additional libs.
    
    NB to correctly run configure for mythmusic requires an updated
    mythbuild.sh.
    
    Signed-off-by: Lawrence Rust <lvr@softsystem.co.uk>
    ---
     mythplugins/configure |    5 ++++-
     1 files changed, 4 insertions(+), 1 deletions(-)
    
    diff --git a/mythplugins/configure b/mythplugins/configure
    index 15946c0..9356804 100755
    a b check_ld(){ 
    151151        test "${f}" = "${f#-l}" && flags="$flags $f" || libs="$libs $f"
    152152    done
    153153    check_cc $($filter_cflags $flags) || return
    154     check_cmd $LD $LDFLAGS $flags -o $TMPE $TMPO $libs
     154    check_cmd $LD $LDFLAGS $flags -o $TMPE $TMPO $libs $EXTRALIBS
    155155}
    156156
    157157check_header(){
    CXXPPFLAGS=$(cat mythconfig.mak | grep -e "^CXXPPFLAGS=") 
    555555CXXPPFLAGS=${CXXPPFLAGS#CXXPPFLAGS=}
    556556OPENGLV=$(cat mythconfig.mak | grep -e "^CONFIG_OPENGL_VIDEO=yes")
    557557
     558EXTRALIBS=$(cat mythconfig.mak | grep -e "^EXTRALIBS=")
     559EXTRALIBS=${EXTRALIBS#EXTRALIBS=}
     560
    558561if ! is_qmake4 $qmake; then
    559562    is_qmake4 qmake-qt4 && qmake=qmake-qt4 || die "qmake for Qt4.6 or newer not found.\nPlease specify the correct qmake with --qmake="
    560563fi