]> git.armaanb.net Git - opendoas.git/commitdiff
fix configure script
authorSvyatoslav Mishyn <juef@openmailbox.org>
Mon, 9 May 2016 09:32:20 +0000 (12:32 +0300)
committerSvyatoslav Mishyn <juef@openmailbox.org>
Mon, 9 May 2016 09:32:20 +0000 (12:32 +0300)
 * "+=" is not working in shell
 * fix a typo (OS_FLAGS => OS_CFLAGS)

configure

index 5f896c478aa58a7642a3ca7f2283f09a317c33c4..0e3fd39cf99f3956bd1323032aace2645aba1a12 100755 (executable)
--- a/configure
+++ b/configure
@@ -91,11 +91,11 @@ if [ -z "$OS" ]; then
        KERNEL=${REST%%-*}
 fi
 
-OS_FLAGS="-D__${OS}__"
+OS_CFLAGS="-D__${OS}__"
 
 case "$OS" in
        linux)
-               OS_CFLAGS+=" -D_DEFAULT_SOURCE -D_GNU_SOURCE -DUID_MAX=60000 -DGID_MAX=60000"
+               OS_CFLAGS="$OS_CFLAGS -D_DEFAULT_SOURCE -D_GNU_SOURCE -DUID_MAX=60000 -DGID_MAX=60000"
                printf 'CURDIR   :=     .\n' >>$CONFIG_MK
                printf 'PAM_DOAS  =     pam.d__doas__linux\n' >>$CONFIG_MK
                ;;