Changeset View
Changeset View
Standalone View
Standalone View
files/patch-powerpc64
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
# NOTE: Patch has already been upstreamed | |||||
# PR #18665 REF 20a641e | |||||
--- configure.ac.orig 2020-02-08 15:19:40.753311000 -0500 | |||||
+++ configure.ac 2020-02-08 15:22:40.128949000 -0500 | |||||
@@ -4469,9 +4469,23 @@ | |||||
if test "x$ac_cv_sizeof_void_p" = "x8"; then | |||||
TARGET=POWERPC64; | |||||
CPPFLAGS="$CPPFLAGS -D__mono_ppc__ -D__mono_ppc64__" | |||||
- if ! (echo $CC | grep -q -- 'clang'); then | |||||
- CFLAGS="$CFLAGS -mminimal-toc" | |||||
- fi | |||||
+ AC_MSG_NOTICE([Checking for PowerPC ISA -mminimal-toc support]) | |||||
+ AX_CHECK_COMPILE_FLAG( | |||||
+ [-mminimal-toc], | |||||
+ [CFLAGS="$CFLAGS -mminimal-toc"], | |||||
+ [CFLAGS="$CFLAGS"] | |||||
+ ) | |||||
+ case "$host" in | |||||
+ powerpc*-*-freebsd*) | |||||
+ # We need to be aware if we are ELFv1 or v2 here | |||||
+ AC_MSG_NOTICE([Checking FreeBSD ELF version]) | |||||
+ if ! ( echo | cc -dM -E - | awk '/_CALL_ELF/ {print $NF}'); then | |||||
+ AC_DEFINE([POWERPC_ELF], 1, [PowerPC ELFv1]) | |||||
+ else | |||||
+ AC_DEFINE([POWERPC_ELFV2], 1, [PowerPC ELFv2]) | |||||
+ fi | |||||
+ ;; | |||||
+ esac | |||||
else | |||||
TARGET=POWERPC; | |||||
CPPFLAGS="$CPPFLAGS -D__mono_ppc__" |