From fc706daf60e32f641c90c6da9a6c77f1b40fc20d Mon Sep 17 00:00:00 2001 From: Kenaniah Cerny Date: Sun, 18 Jun 2017 20:57:52 -0700 Subject: [PATCH] properly escapes commas in cflags --- src/configure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/configure b/src/configure index 10d0ff57..62bd7b1f 100755 --- a/src/configure +++ b/src/configure @@ -35,12 +35,12 @@ eval "$("$src_dir"/shobj-conf -C "$CC" -o "$host_os")" sed " s,@CC@,${CC}, - s,@CFLAGS@,${CFLAGS}, - s,@LOCAL_CFLAGS@,${LOCAL_CFLAGS}, + s,@CFLAGS@,${CFLAGS//,/\\,}, + s,@LOCAL_CFLAGS@,${LOCAL_CFLAGS//,/\\,}, s,@DEFS@,${DEFS}, s,@LOCAL_DEFS@,${LOCAL_DEFS}, s,@SHOBJ_CC@,${SHOBJ_CC}, - s,@SHOBJ_CFLAGS@,${SHOBJ_CFLAGS}, + s,@SHOBJ_CFLAGS@,${SHOBJ_CFLAGS//,/\\,}, s,@SHOBJ_LD@,${SHOBJ_LD}, s,@SHOBJ_LDFLAGS@,${SHOBJ_LDFLAGS//,/\\,}, s,@SHOBJ_XLDFLAGS@,${SHOBJ_XLDFLAGS//,/\\,},