"Fossies" - the Fresh Open Source Software Archive

Member "pkg-config-0.29.2/check/check-sysroot" (20 Mar 2017, 1057 Bytes) of package /linux/misc/pkg-config-0.29.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "check-sysroot": 0.29.1_vs_0.29.2.

    1 #! /bin/sh
    2 
    3 set -e
    4 
    5 . ${srcdir}/common
    6 
    7 export PKG_CONFIG_SYSROOT_DIR=/sysroot
    8 
    9 # MSYS mangles / paths to its own root in windows format. This probably
   10 # means sysroot doesn't work there, but match what pkg-config passes
   11 # back anyway.
   12 [ "$OSTYPE" = msys ] && root=$(cd / && pwd -W) || root=
   13 
   14 RESULT=""
   15 run_test --cflags simple
   16 
   17 RESULT="-lsimple"
   18 if [ "$list_indirect_deps" = no ]; then
   19     run_test --libs simple
   20 fi
   21 
   22 RESULT="-lsimple -lm"
   23 if [ "$list_indirect_deps" = yes ]; then
   24     run_test --libs simple
   25 fi
   26 run_test --libs --static simple
   27 
   28 RESULT="-I$root/sysroot/public-dep/include"
   29 run_test --cflags public-dep
   30 
   31 RESULT="-L$root/sysroot/public-dep/lib -lpublic-dep"
   32 run_test --libs public-dep
   33 
   34 RESULT="-g -ffoo -I$root/sysroot/foo -isystem $root/sysroot/system1 -idirafter $root/sysroot/after1 -I$root/sysroot/bar -idirafter $root/sysroot/after2 -isystem $root/sysroot/system2"
   35 run_test --cflags special-flags
   36 
   37 RESULT="-L$root/sysroot/foo -L$root/sysroot/bar -framework Foo -lsimple -framework Bar -Wl,-framework -Wl,Baz"
   38 run_test --libs special-flags