Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanne Grunau <janne-vlc@jannau.net>2018-11-18 19:12:05 +0300
committerJanne Grunau <janne-vlc@jannau.net>2018-11-18 21:36:12 +0300
commit58bcccc98a6c1a62c497e0f33be93fef0dd83af7 (patch)
treecf72c9a7b73f3236c236b8d37e09cdedfcca6de5
parent1d16d094063ebf97203cc3898d7cb8357275c916 (diff)
arm: define PIC based on __PIC__ or __pic__ if not defined
Fixes #149.
-rw-r--r--src/arm/asm.S8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/arm/asm.S b/src/arm/asm.S
index 6112646..0b2291b 100644
--- a/src/arm/asm.S
+++ b/src/arm/asm.S
@@ -54,6 +54,14 @@
#endif
#endif
+#if !defined(PIC)
+#if defined(__PIC__)
+#define PIC __PIC__
+#elif defined(__pic__)
+#define PIC __pic__
+#endif
+#endif
+
#ifndef PRIVATE_PREFIX
#define PRIVATE_PREFIX dav1d_
#endif