File: build-using-libcurl

package info (click to toggle)
curl 8.18.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 32,016 kB
  • sloc: ansic: 202,975; perl: 20,695; python: 10,293; sh: 6,684; makefile: 1,529; pascal: 239; cpp: 174
file content (12 lines) | stat: -rw-r--r-- 360 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
# Build and run a program against libcurl, to verify that the headers and
# pkg-config file are installed correctly

set -e

CROSS_COMPILE="${DEB_HOST_GNU_TYPE:+$DEB_HOST_GNU_TYPE-}"

find . -iname parseurl.c -exec "${CROSS_COMPILE}gcc" \
        -o "$AUTOPKGTEST_TMP/parseurl" {} $(pkgconf --cflags --libs libcurl) \;

"$AUTOPKGTEST_TMP/parseurl"