summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Kendall <mkendall@mythtv.org>2011-02-18 05:05:04 (GMT)
committer Mark Kendall <mkendall@mythtv.org>2011-02-21 01:00:00 (GMT)
commitc66dceb8f9978d7215441116fc7aca1d624c03a4 (patch)
treeefcda6b23913c77a6f382c20fe260d113971104d
parentfa6564db35fb52fb8b992c7f94e70bba83147114 (diff)
configure: Fix libs order in check_ld()
With patch and commentary from Lawrence Rust: 'The configure script defines the function check_ld which tests if a named function can be compiled with specified headers and libraries. However, the libraries are placed after $extralibs in the linker invocation which can cause the link to fail if the tested libraries depend on $extralibs.' (cherry picked from commit ef68bf72072f646603ab3fd6e7dddf4ac6f69fb5)
-rwxr-xr-xmythtv/configure2
1 files changed, 1 insertions, 1 deletions
diff --git a/mythtv/configure b/mythtv/configure
index fa19cd1..1efe803 100755
--- a/mythtv/configure
+++ b/mythtv/configure
@@ -742,7 +742,7 @@ check_ld(){
test "${f}" = "${f#-l}" && flags="$flags $f" || libs="$libs $f"
done
check_cc $($filter_cflags $flags) || return
- check_cmd $ld $LDFLAGS $flags -o $TMPE $TMPO $extralibs $libs
+ check_cmd $ld $LDFLAGS $flags -o $TMPE $TMPO $libs $extralibs
}
check_cppflags(){