| Index: media/base/simd/x86inc.asm
|
| diff --git a/media/base/simd/x86inc.asm b/media/base/simd/x86inc.asm
|
| index 956b999d3545616b79b104aa6d0fa66bc9de3e9e..5e0ca20c5f3ee49dab33cce80ebb529d434a43b7 100644
|
| --- a/media/base/simd/x86inc.asm
|
| +++ b/media/base/simd/x86inc.asm
|
| @@ -95,11 +95,14 @@
|
| %ifdef WIN64
|
| %define PIC
|
| %elifndef ARCH_X86_64
|
| +; For chromium we may build PIC code even for 32 bits system.
|
| +%ifndef CHROMIUM
|
| ; x86_32 doesn't require PIC.
|
| ; Some distros prefer shared objects to be PIC, but nothing breaks if
|
| ; the code contains a few textrels, so we'll skip that complexity.
|
| %undef PIC
|
| %endif
|
| +%endif
|
| %ifdef PIC
|
| default rel
|
| %endif
|
| @@ -947,6 +950,11 @@ AVX_INSTR pfmul, 1, 0
|
| ;=============================================================================
|
|
|
| %ifdef CHROMIUM
|
| +; Always build PIC code on Mac for Chromium.
|
| +%ifdef MACHO
|
| +%define PIC
|
| +%endif
|
| +
|
| ;
|
| ; LOAD_SYM %1 (reg), %2 (sym)
|
| ; Copies the address to a local symbol to the specified register.
|
|
|