Add missing linking flags to statically build in OpenBSD

This commit is contained in:
pancake 2018-10-20 19:58:20 +02:00
parent d930ebf298
commit 72246175f5

View File

@ -1,8 +1,13 @@
#!/bin/sh
if [ "$(uname)" = Linux ]; then
case "$(uname)" in
Linux)
LDFLAGS="${LDFLAGS} -lpthread -ldl -lutil -lm"
fi
;;
OpenBSD)
LDFLAGS="${LDFLAGS} -lpthread -lkvm -lutil -lm"
;;
esac
MAKE=make
gmake --help >/dev/null 2>&1
[ $? = 0 ] && MAKE=gmake