nasm test: use -no-pie
We were hitting the problem described by:
See the first answer for a detailed explanation
Fixes
@@ -39,6 +39,11 @@ config_file = configure_file(
output_format: 'nasm',
)
-exe = executable('hello', asm_gen.process('hello.asm'))
+cc = meson.get_compiler('c')
+link_args = cc.get_supported_link_arguments(['-no-pie'])
+
+exe = executable('hello', asm_gen.process('hello.asm'),
+ link_args: link_args,
+)
test('test-nasm-configure-file', exe)
