Update configure for windows
This commit is contained in:
7
configure
vendored
7
configure
vendored
@@ -28,9 +28,9 @@ LDFLAGS=
|
|||||||
CC=
|
CC=
|
||||||
|
|
||||||
printf "checking for C compiler... "
|
printf "checking for C compiler... "
|
||||||
|
trycc clang
|
||||||
trycc gcc
|
trycc gcc
|
||||||
trycc cc
|
trycc cc
|
||||||
trycc clang
|
|
||||||
trycc icx
|
trycc icx
|
||||||
printf "%s\n" "$CC"
|
printf "%s\n" "$CC"
|
||||||
|
|
||||||
@@ -63,6 +63,11 @@ if [ -z "$DEBUG" ]; then
|
|||||||
CFLAGS="-std=c23 -O0 -g3 -Wall -Wextra -Wpedantic -Werror -Wshadow -Wdouble-promotion -Wformat=2 -Wnull-dereference -Wconversion -Wsign-conversion -Wcast-qual -Wcast-align=strict -Wpointer-arith -Wstrict-overflow=5 -Wstrict-aliasing=2 -Wundef -Wunreachable-code -Wswitch-enum -fanalyzer -fsanitize=undefined,address -fstack-protector-strong -D_FORTIFY_SOURCE=3"
|
CFLAGS="-std=c23 -O0 -g3 -Wall -Wextra -Wpedantic -Werror -Wshadow -Wdouble-promotion -Wformat=2 -Wnull-dereference -Wconversion -Wsign-conversion -Wcast-qual -Wcast-align=strict -Wpointer-arith -Wstrict-overflow=5 -Wstrict-aliasing=2 -Wundef -Wunreachable-code -Wswitch-enum -fanalyzer -fsanitize=undefined,address -fstack-protector-strong -D_FORTIFY_SOURCE=3"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
case "$OSTYPE"
|
||||||
|
case "cygwin"|"msys") echo "enabling windows specific flags" ; CFLAGS="-v ${CFLAGS}";;
|
||||||
|
*) ;;
|
||||||
|
easc
|
||||||
|
|
||||||
printf "creating config.mak... "
|
printf "creating config.mak... "
|
||||||
printf "PREFIX=%s\n" "$prefix" > config.mak
|
printf "PREFIX=%s\n" "$prefix" > config.mak
|
||||||
printf "CFLAGS=%s\n" "$CFLAGS" >> config.mak
|
printf "CFLAGS=%s\n" "$CFLAGS" >> config.mak
|
||||||
|
|||||||
Reference in New Issue
Block a user