]> git.armaanb.net Git - opendoas.git/blobdiff - configure
use wheel group on MacOSX
[opendoas.git] / configure
index 94ded41f2d0042253160c2b9b2c1721d47f4e09e..f5f3f47309d78f1c7641f3aedcf62fe2f8cc4669 100755 (executable)
--- a/configure
+++ b/configure
@@ -119,6 +119,9 @@ case "$OS" in
                printf 'LDFLAGS  +=     -lutil\n' >>$CONFIG_MK
                : ${BINGRP:=wheel}
                ;;
+       darwin)
+               : ${BINGRP:=wheel}
+               ;;
 esac
 
 : ${PREFIX:=/usr/local}
@@ -157,7 +160,11 @@ EOF
 # Add CPPFLAGS/CFLAGS/LDFLAGS to CC for testing features
 XCC="${CC:=cc} $CFLAGS $OS_CFLAGS $CPPFLAGS $LDFLAGS"
 # Make sure to disable --as-needed for CC tests.
-XCC="$XCC -Wl,--no-as-needed"
+
+case "$OS" in
+       darwin) ;;
+       *) XCC="$XCC -Wl,--no-as-needed" ;;
+esac
 
 check_func() {
        func="$1"; src="$2"; shift 2