configure: strip compiler and linker flags of whitespace
Also include cppflags in the script's output
This commit is contained in:
parent
5313601c79
commit
b41bec792a
1 changed files with 6 additions and 0 deletions
6
configure
vendored
6
configure
vendored
|
@ -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")"
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue