configure: --add-cflags to amend $CFLAGS without replacing existing value(s) #858
authorKim Alvefur <zash@zash.se>
Tue, 25 Apr 2017 21:46:46 +0200
changeset 8132 69f8b22b0472
parent 8130 3e443d6791e6
child 8133 12440a0043ab
configure: --add-cflags to amend $CFLAGS without replacing existing value(s) #858
configure
--- a/configure	Tue Apr 25 01:35:13 2017 +0200
+++ b/configure	Tue Apr 25 21:46:46 2017 +0200
@@ -297,6 +297,9 @@
    --cflags)
       CFLAGS="$value"
       ;;
+   --add-cflags)
+      CFLAGS="$CFLAGS $value"
+      ;;
    --ldflags)
       LDFLAGS="$value"
       ;;