diff options
author | Sven Gothel <[email protected]> | 2013-04-21 08:59:27 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-04-21 08:59:27 +0200 |
commit | 43e1ba37166d7ebdea355c50a60dee9140bcf770 (patch) | |
tree | ff177797a25d4f788df757a3db1f40d7e8b33bfd /cmake/glibc-compat-symbols.h | |
parent | 554b34927cd6a2e0c0ce227108ebf8521bcba889 (diff) |
cmake/glibc-compat-symbols.h: Add __arm__ -> GLIBC_2.4 ; default is now GLIBC_2.2.5 // Still minimum required is GLIBC_2.4!
Diffstat (limited to 'cmake/glibc-compat-symbols.h')
-rw-r--r-- | cmake/glibc-compat-symbols.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/cmake/glibc-compat-symbols.h b/cmake/glibc-compat-symbols.h index 482e2326..135a8d6d 100644 --- a/cmake/glibc-compat-symbols.h +++ b/cmake/glibc-compat-symbols.h @@ -2,12 +2,22 @@ #define __GLIBC_COMPAT_SYMBOLS_H__ 1 /** - * add other architecures below + * + * Note: JogAmp's minimum GLIBC is 2.4 due to '__stack_chk_fail' (stack overflow checking) + * + * GLIBC 2.4 - March 2006 - Standard for LSB 4.0, Used in SLES 10 + * + * We could add compile/link option '-fno-stack-protector', however stack protection seems reasonable + * and a pre 2006 distribution a bit too 'far fetched' for our multimedia bindings anyway. + * + * Check build-in macro definitions via 'gcc -dM -E - < /dev/null' */ -#ifdef __amd64__ +#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"); + #define GLIBC_COMPAT_SYMBOL(FFF) __asm__(".symver " #FFF "," #FFF "@GLIBC_2.2.5"); #endif /*__amd64__*/ GLIBC_COMPAT_SYMBOL(memcpy) |