1
mirror of https://github.com/mpv-player/mpv synced 2024-08-04 14:59:58 +02:00

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:
Uoti Urpala 2009-07-25 07:33:52 +03:00
parent 546c3fb53c
commit 4ab6e16888

4
configure vendored
View File

@ -810,10 +810,10 @@ for ac_option do
;;
--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=$(echo $ac_option | cut -d '=' -f 2-)
extra_ldflags="$extra_ldflags $(echo $ac_option | cut -d '=' -f 2-)"
;;
--extra-libs=*)
extra_libs=$(echo $ac_option | cut -d '=' -f 2)