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(){ |
151 | 151 | test "${f}" = "${f#-l}" && flags="$flags $f" || libs="$libs $f" |
152 | 152 | done |
153 | 153 | 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 |
155 | 155 | } |
156 | 156 | |
157 | 157 | check_header(){ |
… |
… |
CXXPPFLAGS=$(cat mythconfig.mak | grep -e "^CXXPPFLAGS=") |
555 | 555 | CXXPPFLAGS=${CXXPPFLAGS#CXXPPFLAGS=} |
556 | 556 | OPENGLV=$(cat mythconfig.mak | grep -e "^CONFIG_OPENGL_VIDEO=yes") |
557 | 557 | |
| 558 | EXTRALIBS=$(cat mythconfig.mak | grep -e "^EXTRALIBS=") |
| 559 | EXTRALIBS=${EXTRALIBS#EXTRALIBS=} |
| 560 | |
558 | 561 | if ! is_qmake4 $qmake; then |
559 | 562 | is_qmake4 qmake-qt4 && qmake=qmake-qt4 || die "qmake for Qt4.6 or newer not found.\nPlease specify the correct qmake with --qmake=" |
560 | 563 | fi |