Skip to content

Commit

Permalink
meson.build: Enable PIC in x86 assembly code (#3831)
Browse files Browse the repository at this point in the history
This is needed especially when using asm code and  nasm
assembler to compile it.
  • Loading branch information
kraj authored Jan 26, 2025
1 parent e49c095 commit c42fa04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ if ['linux', 'android', 'ios', 'darwin'].contains(system)
endif
if cpu_family == 'x86'
asm_format = asm_format32
asm_args += ['-DX86_32', '-DHAVE_AVX2']
asm_args += ['-DX86_32', '-DX86_32_PICASM', '-DHAVE_AVX2']
add_project_arguments('-DHAVE_AVX2', language: 'cpp')
add_project_arguments('-DHAVE_AVX2', '-DX86_ASM', '-DX86_32_ASM', language: 'c')
asm_inc = join_paths(meson.current_source_dir(), 'codec', 'common', 'x86', '')
Expand Down

0 comments on commit c42fa04

Please sign in to comment.