aboutsummaryrefslogtreecommitdiff
path: root/extra/libbsd/build
blob: 211f953b569189b52eb46e47474ea49fe31836d5 (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
)