summaryrefslogtreecommitdiff
path: root/dev-ml/labltk/files/labltk-8.06.7-configure.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ml/labltk/files/labltk-8.06.7-configure.patch')
-rw-r--r--dev-ml/labltk/files/labltk-8.06.7-configure.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-ml/labltk/files/labltk-8.06.7-configure.patch b/dev-ml/labltk/files/labltk-8.06.7-configure.patch
new file mode 100644
index 000000000000..320f92f7ce45
--- /dev/null
+++ b/dev-ml/labltk/files/labltk-8.06.7-configure.patch
@@ -0,0 +1,27 @@
+https://bugs.gentoo.org/881841
+https://github.com/garrigue/labltk/commit/be8c977d320ed40cacb322658d4ceba5e583b3a6
+
+From be8c977d320ed40cacb322658d4ceba5e583b3a6 Mon Sep 17 00:00:00 2001
+From: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
+Date: Mon, 24 Aug 2020 11:27:34 +0900
+Subject: [PATCH] Fix config/auto-aux/hasgot for clang 12
+
+--- a/config/auto-aux/hasgot
++++ b/config/auto-aux/hasgot
+@@ -30,7 +30,8 @@ while : ; do
+ shift
+ done
+
+-(echo "main() {"
++(for f in $*; do echo "int $f();"; done
++ echo "int main() {"
+ for f in $*; do echo " $f();"; done
+ echo "}") >> hasgot.c
+
+--- a/config/auto-aux/hasgot.c
++++ /dev/null
+@@ -1,3 +0,0 @@
+-main() {
+- Tk_SetGrid();
+-}
+