]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Force a static build for OpenBSD and a SBINDIR of /sbin
authorRoy Marples <roy@marples.name>
Fri, 7 Mar 2014 16:03:52 +0000 (16:03 +0000)
committerRoy Marples <roy@marples.name>
Fri, 7 Mar 2014 16:03:52 +0000 (16:03 +0000)
configure

index 78b5d23a0c1021cddc54c87d285eadce9e3c71ba..161f477d1e50e9397ab20583ffd1cb4d3e691101 100755 (executable)
--- 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