diff options
author | Måns Rullgård <mans@mansr.com> | 2010-06-25 15:45:04 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-06-25 15:45:04 +0000 |
commit | 60361817ee26495cd660857214684cbf9912f2cf (patch) | |
tree | a2de43905ba6cc7494f6d6e4fb0c9cdc786888bc | |
parent | 3091eeb363f0e64a16888f85595851ba4eecccb3 (diff) | |
download | ffmpeg-60361817ee26495cd660857214684cbf9912f2cf.tar.gz |
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
-rwxr-xr-x | configure | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -519,6 +519,12 @@ append(){ eval "$var=\"\$$var $*\"" } +prepend(){ + var=$1 + shift + eval "$var=\"$* \$$var\"" +} + add_cppflags(){ append CPPFLAGS $($filter_cppflags "$@") } @@ -536,7 +542,7 @@ add_ldflags(){ } add_extralibs(){ - append extralibs "$@" + prepend extralibs "$@" } check_cmd(){ |