mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-27 05:35:57 +00:00
trivial: Don't force specific linker flash when cross building
This commit is contained in:
parent
18b0a739e2
commit
08a125637c
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user