mirror of https://github.com/mpv-player/mpv
configure: Make multiple --extra-cflags/ldflags additive
This change makes it easier to pass those flags from a build script while still allowing the user to specify additional flags too.
This commit is contained in:
parent
546c3fb53c
commit
4ab6e16888
|
@ -810,10 +810,10 @@ for ac_option do
|
||||||
;;
|
;;
|
||||||
|
|
||||||
--extra-cflags=*)
|
--extra-cflags=*)
|
||||||
extra_cflags=$(echo $ac_option | cut -d '=' -f 2-)
|
extra_cflags="$extra_cflags $(echo $ac_option | cut -d '=' -f 2-)"
|
||||||
;;
|
;;
|
||||||
--extra-ldflags=*)
|
--extra-ldflags=*)
|
||||||
extra_ldflags=$(echo $ac_option | cut -d '=' -f 2-)
|
extra_ldflags="$extra_ldflags $(echo $ac_option | cut -d '=' -f 2-)"
|
||||||
;;
|
;;
|
||||||
--extra-libs=*)
|
--extra-libs=*)
|
||||||
extra_libs=$(echo $ac_option | cut -d '=' -f 2)
|
extra_libs=$(echo $ac_option | cut -d '=' -f 2)
|
||||||
|
|
Loading…
Reference in New Issue