aboutsummaryrefslogtreecommitdiff
path: root/extra/libbsd/build
blob: ffbfa88f602bbaad4b700c2a97386a1883639100 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh -e

tmp_dir=$PWD/tmp

(
cd libmd

./configure \
    --prefix=/ \
    --disable-shared

make
make DESTDIR="$tmp_dir" install
)

(
cd libbsd

export CFLAGS="$CFLAGS -I$tmp_dir/include"
export LIBS=$tmp_dir/lib/libmd.a

./configure \
    --prefix=/usr

make
make DESTDIR="$1" install
)