diff --git a/var/spack/repos/builtin/packages/nseg/package.py b/var/spack/repos/builtin/packages/nseg/package.py index 26644f61ff..76bf947f20 100644 --- a/var/spack/repos/builtin/packages/nseg/package.py +++ b/var/spack/repos/builtin/packages/nseg/package.py @@ -74,6 +74,16 @@ def prepare_source(self): res_path = join_path(res.fetcher.stage.source_path, res.name) copy(res_path, join_path(self.build_directory, res_name)) + if self.spec.satisfies('%fj'): + sfiles = ['genwin.c', 'nseg.c'] + for s_name in sfiles: + filter_file( + 'return;', + 'return 0;', + join_path(self.build_directory, s_name), + string=True + ) + def install(self, spec, prefix): with working_dir(self.build_directory): mkdirp(prefix.bin)