]> git.ipfire.org Git - thirdparty/elfutils.git/commit
tests: Quote make variables in TESTS_ENVIRONMENT
authorAlexander Miller via Elfutils-devel <elfutils-devel@sourceware.org>
Sun, 7 Feb 2021 15:48:17 +0000 (16:48 +0100)
committerMark Wielaard <mark@klomp.org>
Fri, 12 Feb 2021 17:12:17 +0000 (18:12 +0100)
commit7a5ea4591df5246124ac870c865939ea8f36ac4d
treed91428fa92efbcb2d01e14efce7ef847b744ccb1
parent5e5a05bfb0faa36a4286fc564248214bce0fc879
tests: Quote make variables in TESTS_ENVIRONMENT

Commit eb922a1b8f3a ("tests: use ${CC} instead of 'gcc' in tests")
exports ${CC} into the test environment, but doesn't quote the
value for the assignment. That doesn't work properly if the value
contains whitespace. In a multilib/biarch environment however, it's
common to set CC="gcc -m32" or similar. That causes tests to print
error messages: "/bin/sh: line 2: -m32: command not found".

Fix that by adding quotes around all make variables (not just $CC)
used in setting up TESTS_ENVIRONMENT.

Signed-off-by: Alexander Miller <alex.miller@gmx.de>
tests/ChangeLog
tests/Makefile.am