From: Roy Marples Date: Fri, 7 Mar 2014 16:03:52 +0000 (+0000) Subject: Force a static build for OpenBSD and a SBINDIR of /sbin X-Git-Tag: v6.3.2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b8f50f8cb99c55c33e096140884a2d287542dd6;p=thirdparty%2Fdhcpcd.git Force a static build for OpenBSD and a SBINDIR of /sbin --- 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