Skip to content

add static again #14

Merged
merged 1 commit into from
Jan 9, 2026
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion configuration/gui/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ compiler_flags = ['-Wconversion', '-fdiagnostics-color=always', '-Werror=return-

src = ['main.cpp']

exe = executable('program', src, dependencies : [animationwindow_dep, std_lib_facilities_dep], cpp_args : compiler_flags)
if host_machine.system() == 'windows'
exe = executable('program', src, dependencies : [std_lib_facilities_dep], cpp_args : compiler_flags, link_args: ['-static'])
else
exe = executable('program', src, dependencies : [std_lib_facilities_dep], cpp_args : compiler_flags)
endif
6 changes: 5 additions & 1 deletion configuration/nogui/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@ compiler_flags = ['-Wconversion', '-fdiagnostics-color=always', '-Werror=return-

src = ['main.cpp']

exe = executable('program', src, dependencies : [std_lib_facilities_dep], cpp_args : compiler_flags)
if host_machine.system() == 'windows'
exe = executable('program', src, dependencies : [std_lib_facilities_dep], cpp_args : compiler_flags, link_args: ['-static'])
else
exe = executable('program', src, dependencies : [std_lib_facilities_dep], cpp_args : compiler_flags)
endif