Commit 60361817 authored by Måns Rullgård's avatar Måns Rullgård

configure: reverse order of -l flags

Adding new libs to the front of the list allows them to resolve
symbols against previously added ones.

Originally committed as revision 23780 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 3091eeb3
...@@ -519,6 +519,12 @@ append(){ ...@@ -519,6 +519,12 @@ append(){
eval "$var=\"\$$var $*\"" eval "$var=\"\$$var $*\""
} }
prepend(){
var=$1
shift
eval "$var=\"$* \$$var\""
}
add_cppflags(){ add_cppflags(){
append CPPFLAGS $($filter_cppflags "$@") append CPPFLAGS $($filter_cppflags "$@")
} }
...@@ -536,7 +542,7 @@ add_ldflags(){ ...@@ -536,7 +542,7 @@ add_ldflags(){
} }
add_extralibs(){ add_extralibs(){
append extralibs "$@" prepend extralibs "$@"
} }
check_cmd(){ check_cmd(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment