diff options
author | Richard Hughes <richard@hughsie.com> | 2019-11-23 12:29:57 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2019-11-23 20:16:09 +0000 |
commit | 8836a499232aaed11b1f00db861044b4dcd9d5fc (patch) | |
tree | 13e2cade726a2abcd3480815efba26a73e7aa867 | |
parent | 06c7fc3afe90443bcf83d647b8f9e2a8dbb72d5a (diff) | |
download | gusb-8836a499232aaed11b1f00db861044b4dcd9d5fc.tar.gz |
trivial: Don't force specific linker flash when cross building
-rw-r--r-- | meson.build | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 71d0192..88ca30c 100644 --- a/meson.build +++ b/meson.build @@ -22,7 +22,6 @@ lt_version = '@0@.@1@.@2@'.format(lt_current, lt_age, lt_revision) # get supported warning flags test_args = [ - '-fstack-protector-strong', '-Waggregate-return', '-Wunused', '-Warray-bounds', @@ -73,6 +72,10 @@ foreach arg: test_args endif endforeach +if not meson.is_cross_build() + add_project_arguments('-fstack-protector-strong', language : 'c') +endif + # enable full RELRO where possible # FIXME: until https://github.com/mesonbuild/meson/issues/1140 is fixed global_link_args = [] |