From 06b553ceed6c4f9333c6f195909eacce37f3e80e Mon Sep 17 00:00:00 2001 From: Benjamin Trigona-Harany Date: Mon, 16 Dec 2019 10:39:42 -0800 Subject: academic/ITK: Add support for GCC 9. --- academic/ITK/ITK.SlackBuild | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'academic/ITK') diff --git a/academic/ITK/ITK.SlackBuild b/academic/ITK/ITK.SlackBuild index b7a02d83e46a1..afeb3068c80cc 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 -- cgit v1.2.3