configure: strip compiler and linker flags of whitespace

Also include cppflags in the script's output
This commit is contained in:
Jeremy Baxter 2024-02-27 18:02:33 +13:00
parent 5313601c79
commit b41bec792a

6
configure vendored
View file

@ -95,8 +95,12 @@ gen_CFLAGS () {
fi fi
for flag in $cflags; do for flag in $cflags; do
for flag in $cflags $cppflags; do
using "$flag" using "$flag"
done done
cflags="$(trim "$cflags")"
cppflags="$(trim "$cppflags")"
} }
## flags used in the linking step ## flags used in the linking step
@ -114,6 +118,8 @@ gen_LDFLAGS () {
for flag in $ldflags; do for flag in $ldflags; do
using "$flag" using "$flag"
done done
ldflags="$(trim "$ldflags")"
} }
# #