diff options
author | Gaël PORTAY <gael.portay@savoirfairelinux.com> | 2018-02-22 17:49:04 -0500 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@bootlin.com> | 2018-02-25 21:55:25 +0100 |
commit | cc526b428bb6f1e35ce9165f94e6f2fd306a37c7 (patch) | |
tree | 8c6ad7f11eccdf129e1a0248703737b99c4350b3 /package/gcc | |
parent | e44ae2afe7f39240ce5c17a104f73f3b4e492b64 (diff) | |
download | buildroot-cc526b428bb6f1e35ce9165f94e6f2fd306a37c7.tar.gz buildroot-cc526b428bb6f1e35ce9165f94e6f2fd306a37c7.zip |
pkgconf: pkg-config.in: double quote $@
The shell expands "$@" as "$1" "$2" "$3"... while it expands $@ as $1 $2
$3. With the second form, we loses spaces in positional parameters.
As example, the following call
pkg-config --cflags "one two" three
is wrapped as
pkgconf --cflags one two three
while we are expecting
pkgconf --cflags "one two" three
"$@" is really useful when writing wrappers. It passes the positional
arguments *as* they are given.
Double quote $@ to prevent from splitting elements.
Signed-off-by: Gaël PORTAY <gael.portay@savoirfairelinux.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/gcc')
0 files changed, 0 insertions, 0 deletions