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>
This commit is contained in:
Giancarlo Dessì 2021-08-17 11:21:50 +02:00 committed by Willy Sudiarto Raharjo
parent 510ce5924e
commit 77fcf64581
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -85,7 +85,7 @@ find -L . \
patch -p1 <<'endpatch' 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.cp
+++ InsightToolkit-4.13.2/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_compiler.h +++ 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 # define VCL_GCC_81
# else # else
# define VCL_GCC_80 # define VCL_GCC_80
@ -111,6 +111,17 @@ patch -p1 <<'endpatch'
+# define VCL_GCC_101 +# define VCL_GCC_101
+# else +# else
+# define VCL_GCC_100 +# 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 # endif
# else # else
# error "Dunno about this gcc" # error "Dunno about this gcc"