File: build

package info (click to toggle)
libgpg-error 1.38-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 6,256 kB
  • sloc: ansic: 24,088; sh: 12,597; makefile: 490; awk: 333; lisp: 138; sed: 16
file content (13 lines) | stat: -rwxr-xr-x 296 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

set -e

if [ -n "${DEB_HOST_GNU_TYPE:-}" ]; then
    CROSS_COMPILE=${DEB_HOST_GNU_TYPE}-
else
    CROSS_COMPILE=
fi

${CROSS_COMPILE}gcc -pedantic -Wall -Werror -o test-run debian/tests/simple-build.c $(${CROSS_COMPILE}pkg-config --cflags --libs gpg-error)
./test-run
rm -f test-run