guru/dev-java/gluegen/files/gluegen-2.3.2-missing-arch-symbol.diff
Alessandro Barbieri 1741005ef0
dev-java/gluegen: Debian patches
Closes: https://bugs.gentoo.org/855470
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-07-06 02:10:29 +02:00

40 lines
1.7 KiB
Diff

--- a/make/stub_includes/platform/glibc-compat-symbols.h
+++ b/make/stub_includes/platform/glibc-compat-symbols.h
@@ -15,35 +15,7 @@
*
* 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__)
- #if defined(__aarch64__)
- #define GLIBC_COMPAT_SYMBOL(FFF) __asm__(".symver " #FFF "," #FFF "@GLIBC_2.4");
- #elif 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(__aarch64__)
- #define GLIBC_COMPAT_SYMBOL(FFF) asm(".symver " #FFF "," #FFF "@GLIBC_2.4");
- #elif 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__*/
- #else
- #warning GLIBC_COMPAT_SYMBOL not supported with current compiler on GNU/Linux
- #define GLIBC_COMPAT_SYMBOL(FFF)
- #endif
-#else
- #warning GLIBC_COMPAT_SYMBOL not supported with target OS
- #define GLIBC_COMPAT_SYMBOL(FFF)
-#endif
+#define GLIBC_COMPAT_SYMBOL(FFF)
GLIBC_COMPAT_SYMBOL(memcpy)