Skip to content

Commit

Permalink
update meson.build to make it works on i
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinGZhang committed Oct 11, 2022
1 parent 9b03471 commit 2bd66eb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions meson.build
Expand Up @@ -50,6 +50,13 @@ m_dep = cc.find_library('m', required : false)
if m_dep.found()
add_project_link_arguments('-lm', language : 'c')
endif
if host_machine.system() == 'os400'
add_global_arguments('-pthread', language : 'cpp')
add_global_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)
Expand Down

0 comments on commit 2bd66eb

Please sign in to comment.