Skip to contentSkip to conversation

configure: fix parameter expansion of --cross-cc-cflags options

PATCH Philippe Mathieu-Daudé via 1 participant 1 message Jan 24, 2022 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Philippe Mathieu-Daudé via

author Reviewed-by Philippe Mathieu-Daudé
#1 lore raw
Quoted 10 lines · On 1/24/22 18:23, [email protected] wrote:

From: Matheus Ferst <[email protected]>

Without this fix, any use of --cross-cc-cflags-* causes a message like:

$ ../configure --cross-cc-ppc64le=clang --cross-cc-cflags-ppc64le="-target powerpc64le-unknown-linux-gnu -sysroot ..."
../configure: 1: eval: cross_cc_cflags_--cross-cc-cflags-ppc64le=-target: not found
../configure: 3816: export: cross_cc_cflags_--cross-cc-cflags-ppc64le: bad variable name

Also, update the documentation to reflect the option being parsed by configure.

Quoted 6 lines
Fixes d422b2bc23 ("configure: allow user to specify --cross-cc-cflags-foo=")
---
 configure              | 4 ++--
 docs/devel/testing.rst | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)