summaryrefslogtreecommitdiff
path: root/check/check-relocatable
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2016-08-24 10:32:57 -0700
committerDan Nicholson <dbn.lists@gmail.com>2016-08-30 09:41:54 -0700
commitbbbdab4c606a1996e6ba573336b425ccc136463c (patch)
treec5439fea55f605873f8119fe64ba71ce8daa1b3c /check/check-relocatable
parent091722179bda0a6dcf388fbfdfcd948b1cb53e9f (diff)
Don't override empty prefix setting
If the original prefix setting is empty, skip prepending the redefined prefix to other variables. This works the same as if the pc file doesn't have a prefix variable at all. https://bugs.freedesktop.org/show_bug.cgi?id=97453-empty
Diffstat (limited to 'check/check-relocatable')
-rwxr-xr-xcheck/check-relocatable7
1 files changed, 7 insertions, 0 deletions
diff --git a/check/check-relocatable b/check/check-relocatable
index 589eddf..40c2c88 100755
--- a/check/check-relocatable
+++ b/check/check-relocatable
@@ -44,3 +44,10 @@ for pkg in prefixdef prefixdef-expanded; do
RESULT="-I/reloc/include -L/reloc/lib -lfoo"
run_test --dont-define-prefix --cflags --libs $pkg
done
+
+# Test prefix redefinition for .pc files with an empty prefix. In this
+# case, there should be no prefix adjustment to the other variables. The
+# result should be the same regardless of prefix redefinition.
+RESULT="-I/some/path/include -L/some/path/lib -lfoo"
+run_test --define-prefix --cflags --libs empty-prefix
+run_test --dont-define-prefix --cflags --libs empty-prefix