aboutsummaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-06-10 19:28:51 +0200
committerSven Gothel <[email protected]>2014-06-10 19:28:51 +0200
commitaddb639e6dde90519f772a66222eb86107b35176 (patch)
tree068b3af1040990a951fb0b8f93a63568582ea23c /make
parent274dbc38e4b671579a07cce8bf7ecab6520e22d6 (diff)
Fix glibc-compat-symbols.h: Distinguish clang and gcc (Aligned w/ openal-soft commit adc3413dda197bbd6b879ff98e897b8fbc66cc39)
Diffstat (limited to 'make')
-rw-r--r--make/stub_includes/platform/glibc-compat-symbols.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/make/stub_includes/platform/glibc-compat-symbols.h b/make/stub_includes/platform/glibc-compat-symbols.h
index e07641e..3599b82 100644
--- a/make/stub_includes/platform/glibc-compat-symbols.h
+++ b/make/stub_includes/platform/glibc-compat-symbols.h
@@ -16,7 +16,15 @@
* Check build-in macro definitions via 'gcc -dM -E - < /dev/null'
*/
#if defined(__linux__) /* Actually we like to test whether we link against GLIBC .. */
- #if defined(__GNUC__) || defined(__clang__)
+ #if defined(__GNUC__)
+ #if defined(__arm__)
+ #define GLIBC_COMPAT_SYMBOL(FFF) __asm__(".symver " #FFF "," #FFF "@GLIBC_2.4");
+ #elif defined(__amd64__)
+ #define GLIBC_COMPAT_SYMBOL(FFF) __asm__(".symver " #FFF "," #FFF "@GLIBC_2.2.5");
+ #else
+ #define GLIBC_COMPAT_SYMBOL(FFF) __asm__(".symver " #FFF "," #FFF "@GLIBC_2.0");
+ #endif /*__amd64__*/
+ #elif defined(__clang__)
#if defined(__arm__)
#define GLIBC_COMPAT_SYMBOL(FFF) asm(".symver " #FFF "," #FFF "@GLIBC_2.4");
#elif defined(__amd64__)