this repo has no description

ocaml-secondary-compiler.4.08.1: Bring the GCC 10 patch from ocaml-secondary-compiler.4.08.1-1

Kate b1fc69c8 33aa1026

Changed files
+36
packages
ocaml-secondary-compiler
ocaml-secondary-compiler.4.08.1
+34
packages/ocaml-secondary-compiler/ocaml-secondary-compiler.4.08.1/files/fix-gcc10.patch
···
···
+
commit 3f10a16153308f967149917585d2bc0b9c06492c
+
Author: Anil Madhavapeddy <anil@recoil.org>
+
Date: Sun Jun 21 18:40:27 2020 +0100
+
+
Add `-fcommon` unconditionally to CFLAGS to fix gcc10 build
+
+
Signed-off-by: Anil Madhavapeddy <anil@recoil.org>
+
+
diff --git a/configure b/configure
+
index 9a78a4554..0c54b560b 100755
+
--- a/configure
+
+++ b/configure
+
@@ -12424,7 +12424,7 @@ $as_echo "$as_me: WARNING: Consider using GCC version 4.2 or above." >&2;};
+
-fno-builtin-memcmp";
+
internal_cflags="$gcc_warnings" ;; #(
+
gcc-*) :
+
- common_cflags="-O2 -fno-strict-aliasing -fwrapv";
+
+ common_cflags="-O2 -fno-strict-aliasing -fwrapv -fcommon";
+
internal_cflags="$gcc_warnings" ;; #(
+
msvc-*) :
+
common_cflags="-nologo -O2 -Gy- -MD"
+
diff --git a/configure.ac b/configure.ac
+
index f5d8a2687..775e0e2db 100644
+
--- a/configure.ac
+
+++ b/configure.ac
+
@@ -540,7 +540,7 @@ AS_CASE([$host],
+
-fno-builtin-memcmp";
+
internal_cflags="$gcc_warnings"],
+
[gcc-*],
+
- [common_cflags="-O2 -fno-strict-aliasing -fwrapv";
+
+ [common_cflags="-O2 -fno-strict-aliasing -fwrapv -fcommon";
+
internal_cflags="$gcc_warnings"],
+
[msvc-*],
+
[common_cflags="-nologo -O2 -Gy- -MD"
+2
packages/ocaml-secondary-compiler/ocaml-secondary-compiler.4.08.1/opam
···
extra-files: [
["0001-Don-t-build-manpages-for-stdlib-docs.patch" "md5=6caa580fe6031c109d2dc96b19bd40cd"]
["0001-Fix-failure-to-install-tools-links.patch" "md5=e973762c0b3d62b0b25a26468086fae3"]
]
patches: [
"0001-Don-t-build-manpages-for-stdlib-docs.patch"
"0001-Fix-failure-to-install-tools-links.patch"
]
available: !(os = "macos" & arch = "arm64")
post-messages: [
···
extra-files: [
["0001-Don-t-build-manpages-for-stdlib-docs.patch" "md5=6caa580fe6031c109d2dc96b19bd40cd"]
["0001-Fix-failure-to-install-tools-links.patch" "md5=e973762c0b3d62b0b25a26468086fae3"]
+
["fix-gcc10.patch" "md5=17ecd696a8f5647a4c543280599f6974"]
]
patches: [
"0001-Don-t-build-manpages-for-stdlib-docs.patch"
"0001-Fix-failure-to-install-tools-links.patch"
+
"fix-gcc10.patch"
]
available: !(os = "macos" & arch = "arm64")
post-messages: [