blob: c782d5f61f9da7e14dbe8c9fea60aabd8f2ef6f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#! /bin/sh
set -e
. ${srcdir}/common
# expect cflags from requires-test and public-dep
RESULT="-I/requires-test/include -I/public-dep/include -I/private-dep/include"
run_test --cflags requires-test
# still expect those cflags for static linking case
RESULT="-I/requires-test/include -I/public-dep/include -I/private-dep/include"
run_test --static --cflags requires-test
# expect libs for just requires-test and public-dep
if [ "$list_indirect_deps" = "yes" ]; then
RESULT="-L/requires-test/lib -L/public-dep/lib -L/private-dep/lib -lrequires-test -lpublic-dep -lprivate-dep"
else
RESULT="-L/requires-test/lib -L/public-dep/lib -lrequires-test -lpublic-dep"
fi
run_test --libs requires-test
# expect libs for requires-test, public-dep and private-dep in static case
RESULT="-L/requires-test/lib -L/public-dep/lib -L/private-dep/lib -lrequires-test -lpublic-dep -lprivate-dep"
run_test --static --libs requires-test
|