summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Benjamin Trigona-Harany <bosth@alumni.sfu.ca>2019-12-16 10:39:42 -0800
committer Benjamin Trigona-Harany <bosth@alumni.sfu.ca>2019-12-16 10:39:42 -0800
commitb601e9a665ddc51caea11276a9a0cc6d22281b27 (patch)
tree98d3823c4d61d19d736ee6dd5735dc7f36142968
parenta477c73154f74d1a41a65916f52b9a023e7a75f1 (diff)
downloadslackbuilds-b601e9a665ddc51caea11276a9a0cc6d22281b27.tar.gz
slackbuilds-b601e9a665ddc51caea11276a9a0cc6d22281b27.tar.xz
academic/ITK: Add support for GCC 9.
-rw-r--r--academic/ITK/ITK.SlackBuild24
1 files changed, 24 insertions, 0 deletions
diff --git a/academic/ITK/ITK.SlackBuild b/academic/ITK/ITK.SlackBuild
index b7a02d83e4..afeb3068c8 100644
--- a/academic/ITK/ITK.SlackBuild
+++ b/academic/ITK/ITK.SlackBuild
@@ -75,6 +75,30 @@ find -L . \
sed -i "s/lib\b/lib${LIBDIRSUFFIX}/" CMakeLists.txt
sed -i "s|/opj_config.h|& \$\{CMAKE_CURRENT_BINARY_DIR\}/openjpeg_mangle.h|" \
Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmopenjpeg/src/lib/openjp2/CMakeLists.txt
+patch -p1 <<'endpatch'
+diff --git a/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_compiler.h b/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_compiler.h
+index 4865361421e..220b9cd49a8 100644
+--- a/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_compiler.h
++++ b/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_compiler.h
+@@ -97,6 +97,17 @@
+ # else
+ # define VCL_GCC_80
+ # endif
++# elif (__GNUC__==9)
++# define VCL_GCC_9
++# if (__GNUC_MINOR__ > 2 )
++# define VCL_GCC_93
++# elif (__GNUC_MINOR__ > 1 )
++# define VCL_GCC_92
++# elif (__GNUC_MINOR__ > 0 )
++# define VCL_GCC_91
++# else
++# define VCL_GCC_90
++# endif
+ # else
+ # error "Dunno about this gcc"
+ # endif
+endpatch
mkdir -p build
cd build