diff options
author | Sven Gothel <sgothel@jausoft.com> | 2013-09-13 18:23:55 +0200 |
---|---|---|
committer | Sven Gothel <sgothel@jausoft.com> | 2013-09-13 18:23:55 +0200 |
commit | a5dacb0b2b6e17f00efe520c1d23bc33ba5d9f78 (patch) | |
tree | 7399783f344967f99565bcd778652aba3db3fa14 /make/stub_includes/platform/glibc-compat-symbols.h | |
parent | a92066c0a37af591db8c54041b533609e2ab8c60 (diff) |
glibc-compat-symbols.h: Only patch symbols w/ __GNUC__, aka 'gcc'
Diffstat (limited to 'make/stub_includes/platform/glibc-compat-symbols.h')
-rw-r--r-- | make/stub_includes/platform/glibc-compat-symbols.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/make/stub_includes/platform/glibc-compat-symbols.h b/make/stub_includes/platform/glibc-compat-symbols.h index 135a8d6..18b2682 100644 --- a/make/stub_includes/platform/glibc-compat-symbols.h +++ b/make/stub_includes/platform/glibc-compat-symbols.h @@ -3,6 +3,9 @@ /** * + * Note: Patching a specific glibc symbol version is only required if *not* statically linking glibc, + * which should be preferred. + * * 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 @@ -12,13 +15,17 @@ * * Check build-in macro definitions via 'gcc -dM -E - < /dev/null' */ -#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"); +#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.2.5"); + #endif /*__amd64__*/ #else - #define GLIBC_COMPAT_SYMBOL(FFF) __asm__(".symver " #FFF "," #FFF "@GLIBC_2.2.5"); -#endif /*__amd64__*/ + #define GLIBC_COMPAT_SYMBOL(FFF) +#endif GLIBC_COMPAT_SYMBOL(memcpy) |