about summary refs log tree commit diff
path: root/configure
blob: 9cea63b58eb188756b4cdf2137a6c55aa620cb1e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
set -eu

libs='kcgi kcgi-html sqlite3'
pkg-config --print-errors $libs

cat >config.mk <<EOF
CFLAGS += $(pkg-config --static --cflags $libs)
LDFLAGS += -static $(pkg-config --static --libs-only-L $libs)
LDLIBS = $(pkg-config --static --libs-only-l $libs)
EOF