aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiancarlo Dessì <gian@giand.it>2021-08-17 11:21:50 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-08-19 18:33:48 +0700
commit77fcf64581210db320d60271f01fc66067d54f90 (patch)
treeeb3ef4282e6997266753aa4ed44fbc31e82f39bc
parent510ce5924ec51ae6933bd858d8f7023c0c1687b7 (diff)
academic/ITK: Update the internal patch for gcc 11.x.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--academic/ITK/ITK.SlackBuild13
1 files changed, 12 insertions, 1 deletions
diff --git a/academic/ITK/ITK.SlackBuild b/academic/ITK/ITK.SlackBuild
index afd0f0cc9934..bc13af67ced3 100644
--- a/academic/ITK/ITK.SlackBuild
+++ b/academic/ITK/ITK.SlackBuild
@@ -85,7 +85,7 @@ find -L . \
patch -p1 <<'endpatch'
--- InsightToolkit-4.13.2/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_compiler.h.cp
+++ InsightToolkit-4.13.2/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_compiler.h
-@@ -96,6 +96,28 @@
+@@ -96,6 +96,39 @@
# define VCL_GCC_81
# else
# define VCL_GCC_80
@@ -111,6 +111,17 @@ patch -p1 <<'endpatch'
+# define VCL_GCC_101
+# else
+# define VCL_GCC_100
++# endif
++# elif (__GNUC__==11)
++# define VCL_GCC_11
++# if (__GNUC_MINOR__ > 2 )
++# define VCL_GCC_113
++# elif (__GNUC_MINOR__ > 1 )
++# define VCL_GCC_112
++# elif (__GNUC_MINOR__ > 0 )
++# define VCL_GCC_111
++# else
++# define VCL_GCC_110
# endif
# else
# error "Dunno about this gcc"