summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorQian Jianhua <qianjh@fujitsu.com>2022-03-19 12:03:36 +0800
committerGitHub <noreply@github.com>2022-03-18 23:03:36 -0500
commit853763428359338dd3065ea7d585380a3374f4a0 (patch)
treed2d43b7294f46d614560d3c3ad598e91fa839ccd /var
parent3ffe9a27b2cf9861b12988f08eacb49e446db06e (diff)
downloadspack-853763428359338dd3065ea7d585380a3374f4a0.tar.gz
spack-853763428359338dd3065ea7d585380a3374f4a0.tar.bz2
spack-853763428359338dd3065ea7d585380a3374f4a0.tar.xz
spack-853763428359338dd3065ea7d585380a3374f4a0.zip
dicom3tools: fix build error with Fujitsu compiler (#29435)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/dicom3tools/package.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/dicom3tools/package.py b/var/spack/repos/builtin/packages/dicom3tools/package.py
index 4a441d43a4..2086088650 100644
--- a/var/spack/repos/builtin/packages/dicom3tools/package.py
+++ b/var/spack/repos/builtin/packages/dicom3tools/package.py
@@ -52,6 +52,14 @@ class Dicom3tools(MakefilePackage):
configure = Executable(join_path('.', 'Configure'))
configure()
+ if spec.satisfies('%fj'):
+ filter_file('#define UseStandardHeadersWithoutExtension 0',
+ '#define UseStandardHeadersWithoutExtension 1',
+ 'config/generic.cf')
+ filter_file('#define EmitUsingStdNameSpace 0',
+ '#define EmitUsingStdNameSpace 1',
+ 'config/generic.cf')
+
imake = which('imake')
imake('-I./config', '-DDefaultUIDRoot={0}'.format(uid_root))
make('World')