Add missing linking flags to statically build in OpenBSD
This commit is contained in:
parent
d930ebf298
commit
72246175f5
1 changed files with 7 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue