summaryrefslogtreecommitdiffstats
path: root/integration-tests/setenv.in
blob: 7177200e9e0becb738ed72e419a678146292bf91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh -e

libdir="@abs_top_builddir@/lib"
if [ -d "$libdir/.libs" ]; then
    libdir="$libdir/.libs"
fi

export CGO_CFLAGS="-I@abs_top_srcdir@/lib/includes -I@abs_top_builddir@/lib/includes @CFLAGS@"
export CGO_CPPFLAGS="@CPPFLAGS@"
export CGO_LDFLAGS="-L$libdir @LDFLAGS@"
export LD_LIBRARY_PATH="$libdir"
export GODEBUG=cgocheck=0
"$@"