File crash-trace-fix-aarch64-ppc64le.patch of Package crash-trace
From: Petr Tesarik <ptesarik@suse.com>
Subject: Fix build for ppc64le and arm64
Upstream: submitted, https://github.com/fujitsu/crash-trace/pull/3
Build fails for AArch64 and little-endian IBM POWER, because TARGET
is undefined, and the compiler complains like this:
gcc: error: macro name missing after '-D'
Signed-off-by: Petr Tesarik <ptesarik@suse.com>
---
Makefile | 8 ++++++++
1 file changed, 8 insertions(+)
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,10 @@ ifeq ($(shell arch), ppc64)
TARGET=PPC64
TARGET_CFLAGS=-m64
endif
+ifeq ($(shell arch), ppc64le)
+ TARGET=PPC64
+ TARGET_CFLAGS=-m64
+endif
ifeq ($(shell arch), ia64)
TARGET=IA64
TARGET_CFLAGS=
@@ -22,6 +26,10 @@ ifeq ($(shell arch), s390)
TARGET=S390
TARGET_CFLAGS=
endif
+ifeq ($(shell arch), aarch64)
+ TARGET=ARM64
+ TARGET_CFLAGS=
+endif
INCDIR=/usr/include/crash