From 827bb568dee7347e28bcb70336f03e19924abc24 Mon Sep 17 00:00:00 2001 From: Andre LaBranche Date: Sat, 26 Feb 2022 04:40:01 -0800 Subject: [PATCH] Fixes: ld: warning: -no_pie ignored for arm64 (#829) Fixes: ld: warning: -no_pie ignored for arm64 --- meson.build | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/meson.build b/meson.build index a8bfd1c54..6cfa0bce8 100644 --- a/meson.build +++ b/meson.build @@ -228,10 +228,12 @@ else project_link_args += [ '-mmacosx-version-min=10.9' ] endif if not get_option('b_pie') and get_option('workaround_gcc_no_pie') # nice one, meson - if cpp_compiler.get_id() in [ 'clang' ] - project_link_args += [ '-Wl,-no_pie' ] - else - project_link_args += [ '-no-pie' ] + if copt_architecture != 'arm64' # no position independent executable for arm64 + if cpp_compiler.get_id() in [ 'clang' ] + project_link_args += [ '-Wl,-no_pie' ] + else + project_link_args += [ '-no-pie' ] + endif endif endif project_c_args += args_ccomp