Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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 ef68bf7)
  • Loading branch information...
commit c66dceb8f9978d7215441116fc7aca1d624c03a4 1 parent fa6564d
Mark Kendall authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mythtv/configure
View
2  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(){
Please sign in to comment.
Something went wrong with that request. Please try again.