Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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.'
  • Loading branch information...
commit ef68bf72072f646603ab3fd6e7dddf4ac6f69fb5 1 parent 92b55c9
Mark Kendall authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  mythtv/configure
2  mythtv/configure
@@ -760,7 +760,7 @@ check_ld(){
760 760 test "${f}" = "${f#-l}" && flags="$flags $f" || libs="$libs $f"
761 761 done
762 762 check_cc $($filter_cflags $flags) || return
763   - check_cmd $ld $LDFLAGS $flags -o $TMPE $TMPO $extralibs $libs
  763 + check_cmd $ld $LDFLAGS $flags -o $TMPE $TMPO $libs $extralibs
764 764 }
765 765
766 766 check_cppflags(){

0 comments on commit ef68bf7

Please sign in to comment.
Something went wrong with that request. Please try again.