mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-02-05 05:20:29 +01:00
If a --variable is requested, make sure to remove the quoting since it's likely the value will be used verbatim in shell command substitution. If the quotes remain in the value, they'd get embedded in the shell variable, too. Freedesktop #67904 (https://bugs.freedesktop.org/show_bug.cgi?id=67904)
17 lines
435 B
Bash
Executable file
17 lines
435 B
Bash
Executable file
#! /bin/sh
|
|
|
|
set -e
|
|
|
|
. ${srcdir}/common
|
|
|
|
# variables come out unquoted
|
|
RESULT='/usr/white space/include'
|
|
run_test --variable=includedir whitespace
|
|
|
|
# expect cflags from whitespace
|
|
RESULT='-Dlala=misc -I/usr/white\ space/include -I$(top_builddir) -Iinclude\ dir -Iother\ include\ dir'
|
|
run_test --cflags whitespace
|
|
|
|
# expect libs from whitespace
|
|
RESULT="-L/usr/white\\ space/lib -lfoo\\ bar -lbar\\ baz -r:foo"
|
|
run_test --libs whitespace
|