From b41bec792a2503cf19dae83aa6f4e13e54360b1f Mon Sep 17 00:00:00 2001 From: Jeremy Baxter Date: Tue, 27 Feb 2024 18:02:33 +1300 Subject: [PATCH] configure: strip compiler and linker flags of whitespace Also include cppflags in the script's output --- configure | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure b/configure index 16cb5c3..a712603 100755 --- a/configure +++ b/configure @@ -95,8 +95,12 @@ gen_CFLAGS () { fi for flag in $cflags; do + for flag in $cflags $cppflags; do using "$flag" done + + cflags="$(trim "$cflags")" + cppflags="$(trim "$cppflags")" } ## flags used in the linking step @@ -114,6 +118,8 @@ gen_LDFLAGS () { for flag in $ldflags; do using "$flag" done + + ldflags="$(trim "$ldflags")" } #