Do not block unknown compiler versions.

Fixes the build with LLVM 11.
This commit is contained in:
fcambus 2021-03-11 09:00:59 +00:00
parent ff221a47b9
commit 404c47a768
2 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,34 @@
$OpenBSD: patch-configure,v 1.5 2021/03/11 09:00:59 fcambus Exp $
Do not block unknown compiler versions.
Upstream commit 21ebd384f78d9933b6e58554db5726e4b3c42efa.
Index: configure
--- configure.orig
+++ configure
@@ -6468,19 +6468,13 @@ else
'')
as_fn_error $? "not found" "$LINENO" 5;
;;
- 2.95.[2-9]|2.95.[2-9][-].*|3.[0-9]|3.[0-9].[0-9]|3.[0-9]|3.[0-9].[0-9]-*|4.*|5.*|6.*|7*|8*|9*|10*)
- _cc_major=`echo $cc_version | cut -d '.' -f 1`
- _cc_minor=`echo $cc_version | cut -d '.' -f 2`
- _cc_mini=`echo $cc_version | cut -d '.' -f 3`
- if test $_cc_major -gt 2; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_version, ok" >&5
-$as_echo "$cc_version, ok" >&6; }
- else
- as_fn_error $? "$cc_version, bad" "$LINENO" 5
- fi
+# old GCC versions in the 2.95.xx family are known to produce bad crashing binaries (it is still out there on some old systems. In general the all versions before 3.0 is risky
+ 2.95.[2-9]|2.95.[2-9][-].*)
+ as_fn_error $? "$cc_version, bad" "$LINENO" 5
;;
*)
- as_fn_error $? "$cc_version, bad" "$LINENO" 5
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_version, ok" >&5
+$as_echo "$cc_version, ok" >&6; }
;;
esac
fi

View File

@ -0,0 +1,32 @@
$OpenBSD: patch-configure_ac,v 1.1 2021/03/11 09:00:59 fcambus Exp $
Do not block unknown compiler versions.
Upstream commit 21ebd384f78d9933b6e58554db5726e4b3c42efa.
Index: configure.ac
--- configure.ac.orig
+++ configure.ac
@@ -132,18 +132,12 @@ else
'')
AC_MSG_ERROR([not found]);
;;
- 2.95.[[2-9]]|2.95.[[2-9]][[-]].*|3.[[0-9]]|3.[[0-9]].[[0-9]]|3.[[0-9]]|3.[[0-9]].[[0-9]]-*|4.*|5.*|6.*|7*|8*|9*|10*)
- _cc_major=`echo $cc_version | cut -d '.' -f 1`
- _cc_minor=`echo $cc_version | cut -d '.' -f 2`
- _cc_mini=`echo $cc_version | cut -d '.' -f 3`
- if test $_cc_major -gt 2; then
- AC_MSG_RESULT([$cc_version, ok])
- else
- AC_MSG_ERROR([$cc_version, bad])
- fi
+# old GCC versions in the 2.95.xx family are known to produce bad crashing binaries (it is still out there on some old systems. In general the all versions before 3.0 is risky
+ 2.95.[[2-9]]|2.95.[[2-9]][[-]].*)
+ AC_MSG_ERROR([$cc_version, bad])
;;
*)
- AC_MSG_ERROR([$cc_version, bad])
+ AC_MSG_RESULT([$cc_version, ok])
;;
esac
fi