dev-java/gluegen: Debian patches

Closes: https://bugs.gentoo.org/855470
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2022-07-05 11:06:28 +02:00
parent 9835d581ab
commit 1741005ef0
23 changed files with 1473 additions and 135 deletions

View File

@@ -0,0 +1,39 @@
--- 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)