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-18 05:05:04 (GMT)
commitef68bf72072f646603ab3fd6e7dddf4ac6f69fb5 (patch)
tree3ec14b5d1e9c5a7fd4fa018a5f086895e356f227
parent92b55c9502f776242f71a56fbac09bc847a93ccc (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.'
-rwxr-xr-xmythtv/configure2
1 files changed, 1 insertions, 1 deletions
diff --git a/mythtv/configure b/mythtv/configure
index 8ed88cd..373f630 100755
--- a/mythtv/configure
+++ b/mythtv/configure
@@ -760,7 +760,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(){