comparison mangle.h @ 29835:f1b71fa008e8

Use configure code to define PIC instead of duplicating the check in mangle.h. While it is currently not necessary, it might be a good idea to move this outside the x86-only block in configure, as well as adding -pie to LDFLAGS.
author reimar
date Tue, 10 Nov 2009 13:08:36 +0000
parents 54aafbe45eb4
children
comparison
equal deleted inserted replaced
29834:ab492a250f35 29835:f1b71fa008e8
29 #define attribute_used __attribute__((used)) 29 #define attribute_used __attribute__((used))
30 #else 30 #else
31 #define attribute_used 31 #define attribute_used
32 #endif 32 #endif
33 33
34 // keep in sync with configure PIC check and libavutil/internal.h
35 #if ( defined(__PIC__) || defined(__pic__) ) && ! defined(PIC)
36 # define PIC
37 #endif
38 #if ARCH_X86_64 && defined(PIC) 34 #if ARCH_X86_64 && defined(PIC)
39 #define MANGLE(a) EXTERN_PREFIX #a "(%%rip)" 35 #define MANGLE(a) EXTERN_PREFIX #a "(%%rip)"
40 #else 36 #else
41 #define MANGLE(a) EXTERN_PREFIX #a 37 #define MANGLE(a) EXTERN_PREFIX #a
42 #endif 38 #endif