mirror of https://git.ffmpeg.org/ffmpeg.git
Make pkgconfig_generate() explicitly return 0 in instead of returning
without value when the target library is disabled. If it does not explicitly return 0, when the last library is disabled (swscale), the final "configure" exit value is 1, even if the configure script is successfully executed. So it breaks scripts that invoke configure and rely on 0 for success and 1 for failure. Patch by Jean-Daniel Dupas reverse(<org.shadowlab@devlists>). Originally committed as revision 24585 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
3dec10cded
commit
8fad266101
|
@ -3192,7 +3192,7 @@ comment=$2
|
||||||
version=$3
|
version=$3
|
||||||
libs=$4
|
libs=$4
|
||||||
requires=$5
|
requires=$5
|
||||||
enabled $shortname || return
|
enabled $shortname || return 0
|
||||||
cat <<EOF > $name/$name.pc
|
cat <<EOF > $name/$name.pc
|
||||||
prefix=$prefix
|
prefix=$prefix
|
||||||
exec_prefix=\${prefix}
|
exec_prefix=\${prefix}
|
||||||
|
|
Loading…
Reference in New Issue