diff options
author | Mathieu Duponchelle <MathieuDuponchelle@users.noreply.github.com> | 2018-06-18 06:58:20 +0200 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2018-06-18 04:58:20 +0000 |
commit | 6e2ee246197a8dd12e8f147975b79599dc881360 (patch) | |
tree | 9f60ed80a0eae68a2a9569268b664b6f43b09829 /test cases/nasm | |
parent | e565945253662ef6e2151241b6686a999b78a43d (diff) | |
download | meson-6e2ee246197a8dd12e8f147975b79599dc881360.zip meson-6e2ee246197a8dd12e8f147975b79599dc881360.tar.gz meson-6e2ee246197a8dd12e8f147975b79599dc881360.tar.bz2 |
nasm test: use -no-pie (#3710)
We were hitting the problem described by:
https://stackoverflow.com/questions/43367427/32-bit-absolute-addresses-no-longer-allowed-in-x86-64-linux
See the first answer for a detailed explanation
Fixes https://github.com/mesonbuild/meson/issues/3707
Diffstat (limited to 'test cases/nasm')
-rw-r--r-- | test cases/nasm/1 configure file/meson.build | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test cases/nasm/1 configure file/meson.build b/test cases/nasm/1 configure file/meson.build index 213e114..e128325 100644 --- a/test cases/nasm/1 configure file/meson.build +++ b/test cases/nasm/1 configure file/meson.build @@ -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) |