diff --git a/configuration/gui/meson.build b/configuration/gui/meson.build index 734b39b..12e77c5 100644 --- a/configuration/gui/meson.build +++ b/configuration/gui/meson.build @@ -13,7 +13,9 @@ compiler_flags = ['-Wconversion', '-fdiagnostics-color=always', '-Werror=return- src = ['main.cpp'] if host_machine.system() == 'windows' - exe = executable('program', src, dependencies : [std_lib_facilities_dep], cpp_args : compiler_flags, link_args: ['-static']) + ld_flags = ['-static'] else - exe = executable('program', src, dependencies : [std_lib_facilities_dep], cpp_args : compiler_flags) -endif \ No newline at end of file + ld_flags = [] +endif + +exe = executable('program', src, dependencies : [std_lib_facilities_dep], cpp_args : compiler_flags, link_args: ld_flags) \ No newline at end of file diff --git a/configuration/nogui/meson.build b/configuration/nogui/meson.build index bf02571..2406a9e 100644 --- a/configuration/nogui/meson.build +++ b/configuration/nogui/meson.build @@ -12,7 +12,9 @@ compiler_flags = ['-Wconversion', '-fdiagnostics-color=always', '-Werror=return- src = ['main.cpp'] if host_machine.system() == 'windows' - exe = executable('program', src, dependencies : [std_lib_facilities_dep], cpp_args : compiler_flags, link_args: ['-static']) + ld_flags = ['-static'] else - exe = executable('program', src, dependencies : [std_lib_facilities_dep], cpp_args : compiler_flags) + ld_flags = [] endif + +exe = executable('program', src, dependencies : [std_lib_facilities_dep], cpp_args : compiler_flags, link_args: ld_flags) \ No newline at end of file