Skip to content

Commit

Permalink
muon: undefine _FORTIFY_SOURCE
Browse files Browse the repository at this point in the history
Fvwm3 needs work to compile with _FORTIFY_SOURCE -- disable for now.
  • Loading branch information
ThomasAdam committed Oct 2, 2024
1 parent d503502 commit 07342bc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ add_project_arguments(
meson.add_dist_script('meson-scripts/dist-tarball.sh')

cc = meson.get_compiler('c')
# Undefine _FOTIFY_SOURCE explicitly. fvwm3 needs work to support this.
cc_flags = [
'-U_FORTIFY_SOURCE'
]
foreach flag: cc_flags
if cc.has_argument(flag)
add_project_arguments(flag, language: 'c')
endif
endforeach

host = host_machine.system() # This is the target system when cross compiling

m_dep = cc.find_library('m', required: false)
Expand Down

0 comments on commit 07342bc

Please sign in to comment.