trivial: Don't force specific linker flash when cross building
Richard Hughes
4 years ago
46 | 46 | |
47 | 47 | # get supported warning flags |
48 | 48 | warning_flags = [ |
49 | '-fstack-protector-strong', | |
50 | 49 | '-Waggregate-return', |
51 | 50 | '-Wunused', |
52 | 51 | '-Warray-bounds', |
103 | 102 | cc = meson.get_compiler('c') |
104 | 103 | add_project_arguments(cc.get_supported_arguments(warning_flags), language : 'c') |
105 | 104 | |
105 | if not meson.is_cross_build() | |
106 | add_project_arguments('-fstack-protector-strong', language : 'c') | |
107 | endif | |
108 | ||
106 | 109 | # enable full RELRO where possible |
107 | 110 | # FIXME: until https://github.com/mesonbuild/meson/issues/1140 is fixed |
108 | 111 | global_link_args = [] |