diff options
author | Christian Pointner <equinox@anytun.org> | 2018-06-13 21:47:34 +0200 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2018-06-13 21:47:34 +0200 |
commit | d14bd0e7fc4d9a637ab1e60d51c0fa9d04fb42dc (patch) | |
tree | 16ca3162b45bb3eec0175dc84469a129133694df | |
parent | merge changelog with release branch (diff) |
fix configure script to honor buildflags in Debian
When using the the buildflags which are exported when setting the
DPKG_EXPORT_BUILDFLAGS variable (or when trying to set some custom
buildflags manually) the build process failed with something like this:
cc1: error: -Werror=format-security-g: no option -Wformat-security-g
This was caused by a missing whitespace when concatenating the CFLAGS
and LDFLAGS variables.
Thanks to Darshaka Pathirana <dpat@syn-net.org> for the patch!
-rwxr-xr-x | src/configure | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/configure b/src/configure index 650b7c7..d5d01fe 100755 --- a/src/configure +++ b/src/configure @@ -153,12 +153,12 @@ if [ -n "$ERRORS" ] && [ $EBUILD_COMPAT -ne 1 ]; then fi if [ $USE_CLANG -eq 0 ]; then - CFLAGS=$CFLAGS'-g -Wall -O2' - LDFLAGS=$LDFLAGS'-g -Wall -O2' + CFLAGS=$CFLAGS' -g -Wall -O2' + LDFLAGS=$LDFLAGS' -g -Wall -O2' COMPILER='gcc' else - CFLAGS=$CFLAGS'-g -O2' - LDFLAGS=$LDFLAGS'-g -O2' + CFLAGS=$CFLAGS' -g -O2' + LDFLAGS=$LDFLAGS' -g -O2' COMPILER='clang' fi |