summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2014-03-07 16:03:52 +0000
committerRoy Marples <roy@marples.name>2014-03-07 16:03:52 +0000
commit6b8f50f8cb99c55c33e096140884a2d287542dd6 (patch)
tree640011bde076e2c8fc57dc4e562de4b2639f8f77 /configure
parentc9c8d13afb0c75bf00644a2afcb94c6f1cf9adb3 (diff)
downloaddhcpcd-6b8f50f8cb99c55c33e096140884a2d287542dd6.tar.xz
Force a static build for OpenBSD and a SBINDIR of /sbin
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure
index 78b5d23a..161f477d 100755
--- a/configure
+++ b/configure
@@ -264,6 +264,14 @@ if [ -n "$LDFLAGS" ]; then
echo "LDFLAGS+= $LDFLAGS" >>$CONFIG_MK
fi
+case "$OS" in
+openbsd*)
+ if [ "$SBINDIR" = /sbin ]; then
+ echo "Forcing a static build for OpenBSD and SBINDIR of /sbin"
+ STATIC=yes
+ fi
+ ;;
+esac
if [ "$STATIC" = yes ]; then
echo "LDFLAGS+= -static" >>$CONFIG_MK
fi