File: link-with-shared

package info (click to toggle)
lingot 1.1.1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,284 kB
  • sloc: ansic: 6,746; makefile: 164; xml: 49; sh: 16
file content (20 lines) | stat: -rw-r--r-- 329 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
set -C -e -f -u

cd "$AUTOPKGTEST_TMP"

cat > main.c <<EOF
#include <lingot-config.h>
int main () {
    lingot_config_t cfg;
    lingot_config_new     (&cfg);
    lingot_config_destroy (&cfg);
    return 0;
}
EOF

# If this fails, tell me right now.
flags=`pkg-config lingot --cflags --libs`

gcc main.c $flags
./a.out