diff options
author | Benjamin Trigona-Harany <bosth@alumni.sfu.ca> | 2019-12-16 10:39:42 -0800 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-12-21 11:02:48 +0700 |
commit | 06b553ceed6c4f9333c6f195909eacce37f3e80e (patch) | |
tree | c17607bdff68022f9640e6700bab9b7863f51479 /academic/ITK | |
parent | 6ac16eacb19a96ca5f2aaf0e5d254a497d20e092 (diff) | |
download | slackbuilds-06b553ceed6c4f9333c6f195909eacce37f3e80e.tar.gz |
academic/ITK: Add support for GCC 9.
Diffstat (limited to 'academic/ITK')
-rw-r--r-- | academic/ITK/ITK.SlackBuild | 24 |
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 |