summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-07-25 07:33:52 +0300
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-07-26 20:22:48 +0300
commit4ab6e168888a0e973e5238d2ecdd632e35cd49fe (patch)
tree06229adc73e4d8b285b25a9fc23f2fb946a8a825 /configure
parent546c3fb53ce64fde5cba3e06012d244e73ae497a (diff)
downloadmpv-4ab6e168888a0e973e5238d2ecdd632e35cd49fe.tar.bz2
mpv-4ab6e168888a0e973e5238d2ecdd632e35cd49fe.tar.xz
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.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index e567a8a22a..7a1458367c 100755
--- a/configure
+++ b/configure
@@ -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)