Fixes: ld: warning: -no_pie ignored for arm64 (#829)

Fixes: ld: warning: -no_pie ignored for arm64
This commit is contained in:
Andre LaBranche
2022-02-26 04:40:01 -08:00
committed by GitHub
parent df7bbd3b8e
commit 827bb568de

View File

@@ -228,12 +228,14 @@ else
project_link_args += [ '-mmacosx-version-min=10.9' ] project_link_args += [ '-mmacosx-version-min=10.9' ]
endif endif
if not get_option('b_pie') and get_option('workaround_gcc_no_pie') # nice one, meson if not get_option('b_pie') and get_option('workaround_gcc_no_pie') # nice one, meson
if copt_architecture != 'arm64' # no position independent executable for arm64
if cpp_compiler.get_id() in [ 'clang' ] if cpp_compiler.get_id() in [ 'clang' ]
project_link_args += [ '-Wl,-no_pie' ] project_link_args += [ '-Wl,-no_pie' ]
else else
project_link_args += [ '-no-pie' ] project_link_args += [ '-no-pie' ]
endif endif
endif endif
endif
project_c_args += args_ccomp project_c_args += args_ccomp
project_cpp_args += args_ccomp + [ '-Wno-invalid-offsetof' ] project_cpp_args += args_ccomp + [ '-Wno-invalid-offsetof' ]
endif endif