Skip to content

Commit

Permalink
Merge pull request lxc#4482 from hallyn/2024-09-16/static
Browse files Browse the repository at this point in the history
meson.build: add -ffat-lto-objects
  • Loading branch information
hallyn authored Oct 9, 2024
2 parents bf33e9b + a8ca9f5 commit 5714ae4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ possible_cc_flags = [
'-Wunused-but-set-variable',
'-Wno-unused-parameter',
'-Wfloat-equal',
'-Wsuggest-attribute=noreturn',
'-Werror=return-type',
'-Werror=incompatible-pointer-types',
'-Wformat=2',
Expand Down Expand Up @@ -249,6 +248,9 @@ if cc.get_id() == 'clang'
'-Wno-gnu-variable-sized-type-not-at-end',
]
endif
possible_cc_flags += [
'-ffat-lto-objects',
]

if meson.version().version_compare('>=0.46')
add_project_link_arguments(cc.get_supported_link_arguments(possible_link_flags), language: 'c')
Expand Down

0 comments on commit 5714ae4

Please sign in to comment.