From 94f6668bb9ce2adfb338ec3d7ac580deeaff622c Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 13 Sep 2013 18:55:45 +0200 Subject: Complete a5dacb0b2b6e17f00efe520c1d23bc33ba5d9f78: Only patch symbols w/ __GNUC__, aka 'gcc' - _without_ clang ! --- make/stub_includes/platform/glibc-compat-symbols.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'make/stub_includes/platform/glibc-compat-symbols.h') diff --git a/make/stub_includes/platform/glibc-compat-symbols.h b/make/stub_includes/platform/glibc-compat-symbols.h index 18b2682..5dc1a18 100644 --- a/make/stub_includes/platform/glibc-compat-symbols.h +++ b/make/stub_includes/platform/glibc-compat-symbols.h @@ -15,7 +15,7 @@ * * Check build-in macro definitions via 'gcc -dM -E - < /dev/null' */ -#if defined(__GNUC__) +#if defined(__GNUC__) && !defined(__clang__) #if defined(__arm__) #define GLIBC_COMPAT_SYMBOL(FFF) __asm__(".symver " #FFF "," #FFF "@GLIBC_2.4"); #elif defined(__amd64__) @@ -24,6 +24,7 @@ #define GLIBC_COMPAT_SYMBOL(FFF) __asm__(".symver " #FFF "," #FFF "@GLIBC_2.2.5"); #endif /*__amd64__*/ #else + #warning GLIBC_COMPAT_SYMBOL not supported with current compiler #define GLIBC_COMPAT_SYMBOL(FFF) #endif -- cgit v1.2.3