trivial: Don't force specific linker flash when cross building

This commit is contained in:
Richard Hughes 2019-11-22 09:02:36 +00:00
parent 18b0a739e2
commit 08a125637c

View File

@ -47,7 +47,6 @@ lt_version = '@0@.@1@.@2@'.format(lt_current, lt_age, lt_revision)
# get supported warning flags
warning_flags = [
'-fstack-protector-strong',
'-Waggregate-return',
'-Wunused',
'-Warray-bounds',
@ -104,6 +103,10 @@ warning_flags = [
cc = meson.get_compiler('c')
add_project_arguments(cc.get_supported_arguments(warning_flags), language : 'c')
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 = []