From 5c300e363a3d2b7bf5baac2418192e21a79e77d1 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Fri, 19 Feb 2021 11:40:01 +0300 Subject: libbsd: build libmd into the library --- extra/libbsd/build | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'extra/libbsd/build') diff --git a/extra/libbsd/build b/extra/libbsd/build index 6daf22f8..ffbfa88f 100755 --- a/extra/libbsd/build +++ b/extra/libbsd/build @@ -1,7 +1,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 +) -- cgit v1.2.3