diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2017-07-05 22:02:53 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2017-07-05 22:02:56 +0200 |
commit | 65529bc54167cf2c1124fad59093e157a0c10d57 (patch) | |
tree | 106e0acbc27d9087c9af71a62323395b3f1e4a04 /configure.ac | |
parent | 9e992c24357dc19e6b0044584c553e802e0aebd1 (diff) |
configure.ac: Fix C(PP)FLAGS for BSD build
Issue first found in libosmocore. It seems the BSD build doesn't use
bash which means using += to append to a variable doesn't work
correctly.
Change-Id: Id509351104bc7466114d4b9be450814254110f44
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 535d1c3..9b62f3e 100644 --- a/configure.ac +++ b/configure.ac @@ -26,8 +26,8 @@ PKG_PROG_PKG_CONFIG([0.20]) AC_CONFIG_MACRO_DIR([m4]) -CFLAGS+=" -Wall" -CPPFLAGS+=" -Wall" +CFLAGS="$CFLAGS -Wall" +CPPFLAGS="$CPPFLAGS -Wall" # The following test is taken from WebKit's webkit.m4 saved_CFLAGS="$CFLAGS" @@ -58,8 +58,8 @@ AC_ARG_ENABLE(sanitize, [sanitize=$enableval], [sanitize="no"]) if test x"$sanitize" = x"yes" then - CFLAGS+=" -fsanitize=address -fsanitize=undefined" - CPPFLAGS+=" -fsanitize=address -fsanitize=undefined" + CFLAGS="$CFLAGS -fsanitize=address -fsanitize=undefined" + CPPFLAGS="$CPPFLAGS -fsanitize=address -fsanitize=undefined" fi _cflags_save=$CFLAGS |