summaryrefslogtreecommitdiff
path: root/check/check-sysroot
blob: 0820206914841f25f40963ed0d9e068f7045cd73 (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
26
27
#! /bin/sh

set -e

. ${srcdir}/common

export PKG_CONFIG_SYSROOT_DIR=/sysroot

RESULT=""
run_test --cflags simple

RESULT="-lsimple"
if [ "$list_indirect_deps" = no ]; then
    run_test --libs simple
fi

RESULT="-lsimple -lm"
if [ "$list_indirect_deps" = yes ]; then
    run_test --libs simple
fi
run_test --libs --static simple

RESULT="-I/sysroot/public-dep/include"
run_test --cflags public-dep

RESULT="-L/sysroot/public-dep/lib -lpublic-dep"
run_test --libs public-dep