2023-08-16 22:26:55 +00:00
|
|
|
Do not pass the -fms-extensions flag, it is unsupported on OpenBSD and
|
|
|
|
breaks the build.
|
|
|
|
|
|
|
|
Index: configure
|
|
|
|
--- configure.orig
|
|
|
|
+++ configure
|
2024-05-26 03:08:12 +00:00
|
|
|
@@ -12899,35 +12899,6 @@ fi
|
2023-08-16 22:26:55 +00:00
|
|
|
# Checks for programs.
|
|
|
|
|
|
|
|
|
|
|
|
-# Copied from http://stackoverflow.com/a/10682813/9832 and tweaked for C (as
|
|
|
|
-# opposed to C++)
|
|
|
|
-#
|
|
|
|
-# AX_CHECK_CFLAGS(ADDITIONAL-CFLAGS, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
|
|
|
|
-#
|
|
|
|
-# checks whether the $(CC) compiler accepts the ADDITIONAL-CFLAGS
|
|
|
|
-# if so, they are added to the CXXFLAGS
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-fms-extensions\"" >&5
|
|
|
|
-printf %s "checking whether compiler accepts \"-fms-extensions\"... " >&6; }
|
|
|
|
- cat > conftest.c << EOF
|
|
|
|
- int main(){
|
|
|
|
- return 0;
|
|
|
|
- }
|
|
|
|
-EOF
|
|
|
|
- if $CC $CFLAGS -o conftest.o conftest.c -fms-extensions > /dev/null 2>&1
|
|
|
|
- then
|
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
|
-printf "%s\n" "yes" >&6; }
|
|
|
|
- CFLAGS="${CFLAGS} -fms-extensions"
|
|
|
|
-
|
|
|
|
- else
|
|
|
|
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
|
-printf "%s\n" "no" >&6; }
|
|
|
|
-
|
|
|
|
- fi
|
|
|
|
-
|
|
|
|
-
|
|
|
|
# We will add this back for non-debug builds in the common.mk file
|
|
|
|
CFLAGS=`echo ${CFLAGS} | sed 's/-O2//'`
|
|
|
|
CXXFLAGS=`echo ${CXXFLAGS} | sed 's/-O2//'`
|