diff options
author | Cem Keylan <cem@ckyln.com> | 2021-02-19 11:40:01 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2021-02-19 11:40:24 +0300 |
commit | 5c300e363a3d2b7bf5baac2418192e21a79e77d1 (patch) | |
tree | 7f6669b39b5ac92ce99dd8a1ede2be0bdebc3685 /extra/libbsd/build | |
parent | d841603afab7ca017abf72fa095b42329e72413a (diff) | |
download | repository-5c300e363a3d2b7bf5baac2418192e21a79e77d1.tar.gz |
libbsd: build libmd into the library
Diffstat (limited to 'extra/libbsd/build')
-rwxr-xr-x | extra/libbsd/build | 20 |
1 files changed, 20 insertions, 0 deletions
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 +) |