From d14bd0e7fc4d9a637ab1e60d51c0fa9d04fb42dc Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 13 Jun 2018 21:47:34 +0200 Subject: 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 for the patch! --- src/configure | 8 ++++---- 1 file 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 -- cgit v1.2.3