File: build

package info (click to toggle)
json-glib 1.4.4-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,600 kB
  • sloc: ansic: 13,146; xml: 336; sh: 134; python: 15; makefile: 15
file content (23 lines) | stat: -rwxr-xr-x 318 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

set -e
set -u
exec 2>&1
set -x

cd "${AUTOPKGTEST_TMP:-"${ADTTMP}"}"

cat > trivial.c <<EOF
#include <errno.h>
#include <json-glib/json-glib.h>

int main (void)
{
    json_array_get_type ();
    return 0;
}
EOF

gcc -o trivial trivial.c $(pkg-config --cflags --libs json-glib-1.0)
test -x trivial
./trivial