Debian Codegraph @

debian/tests/link-with-shared

raw
1 #!/bin/sh
2 set -C -e -f -u
3
4 cd "$AUTOPKGTEST_TMP"
5
6 cat > main.c <<EOF
7 #include <lingot-config.h>
8 int main () {
9 lingot_config_t cfg;
10 lingot_config_new (&cfg);
11 lingot_config_destroy (&cfg);
12 return 0;
13 }
14 EOF
15
16 # If this fails, tell me right now.
17 flags=`pkg-config lingot --cflags --libs`
18
19 gcc main.c $flags
20 ./a.out