Skip to content

Commit

Permalink
MAINT: update meson.build to make it work on IBM i system (scipy#17193)
Browse files Browse the repository at this point in the history
[ci skip]

Co-authored-by: GavinZhang <zhanggan@cn.ibm.com>
Co-authored-by: Ralf Gommers <ralf.gommers@gmail.com>
  • Loading branch information
3 people authored and tylerjereddy committed Oct 16, 2022
1 parent 95cdfed commit 5370f15
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions meson.build
Expand Up @@ -45,6 +45,14 @@ if m_dep.found()
add_project_link_arguments('-lm', language : 'c')
endif

if host_machine.system() == 'os400'
# IBM i system, needed to avoid build errors - see gh-17193
add_project_arguments('-D__STDC_FORMAT_MACROS', language : 'cpp')
add_project_link_arguments('-Wl,-bnotextro', language : 'c')
add_project_link_arguments('-Wl,-bnotextro', language : 'cpp')
add_project_link_arguments('-Wl,-bnotextro', language : 'fortran')
endif

# Adding at project level causes many spurious -lgfortran flags.
add_languages('fortran', native: false)
ff = meson.get_compiler('fortran')
Expand Down

0 comments on commit 5370f15

Please sign in to comment.