aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeebs <seebs@seebs.net>2016-10-13 11:05:28 -0500
committerSeebs <seebs@seebs.net>2016-10-13 11:05:28 -0500
commit7abc9396731149df5eaf43c84fed4f3053b64de6 (patch)
treee42e21f9a54495f3a81eb4d3a4057f696c1f1e35
parentd9ab3a0acc94151048498b1ea4d69e7707df1526 (diff)
downloadpseudo-7abc9396731149df5eaf43c84fed4f3053b64de6.tar.gz
pseudo-7abc9396731149df5eaf43c84fed4f3053b64de6.tar.bz2
pseudo-7abc9396731149df5eaf43c84fed4f3053b64de6.zip
Handle commas in cflags
The sed command for arch_cflags wouldn't work if arch_cflags contained commas. Changing punctuation just moves the problem elsewhere. Instead, use backslashes to escape them. Signed-off-by: Seebs <seebs@seebs.net>
-rw-r--r--ChangeLog.txt3
-rwxr-xr-xconfigure1
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index ca04cc0..5e49851 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,3 +1,6 @@
+2016-10-13:
+ * (seebs) handle commas in CFLAGS
+
2016-09-30:
* (seebs) Fix rename at, matching fix from ee00f63d for rename. Bug
and fix provided by Anton Gerasimov <anton@advancedtelematic.com>.
diff --git a/configure b/configure
index e5ef9ce..170d264 100755
--- a/configure
+++ b/configure
@@ -207,6 +207,7 @@ if [ "${opt_cflags-UNSET}" = "UNSET" ]; then
else
arch_flags=$opt_cflags
fi
+arch_flags=$(echo "$arch_flags" | sed -e 's/,/\\,/g')
if $use_maybe_rpath && [ -n "$maybe_rpath" ]; then
echo >&2 "Adding default RPATH for sqlite."