compat: mingw: default to release build

This commit is contained in:
~locpyl-tidnyd 2021-05-06 13:24:40 +03:00
parent 61a3efc0f0
commit 9590d23c87

13
pkg/urbit/configure vendored
View File

@ -37,14 +37,16 @@ xxd () {
defmacro URBIT_VERSION "\"$URBIT_VERSION\""
opt_debug=
while test $# != 0
do
case $1 in
--enable-debug)
CFLAGS="${CFLAGS-} -O0 -g"
opt_debug=1
;;
--disable-debug)
CFLAGS="${CFLAGS-} -O3 -g"
opt_debug=0
;;
*)
echo "unrecognized option: $1"
@ -102,6 +104,13 @@ case $(tr A-Z a-z <<< $os) in
defmacro U3_OS_mingw 1
if ((opt_debug))
then
CFLAGS="${CFLAGS-} -O0 -g"
else
CFLAGS="${CFLAGS-} -O3 -g"
fi
# increase default thread stack size and link Windows implibs
ldextra="-Wl,--stack,67108864 -lbcrypt -lntdll -lws2_32"
# libcurl implibs