ladybird/Ports/quake3/patches/0006-Meta-Add-ARCH-to-TOOLS_CFLAGS.patch
Gunnar Beutner ce8d410f36 Ports: Make the quake3 port buildable on ARM64 hosts
Previously, on ARM64 hosts we'd try to build ARM64 binaries even when
SERENITY_ARCH was set to x86_64. This would cause the build to fail.
2022-10-18 17:23:52 +02:00

23 lines
598 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Jesse Buhagiar <jooster669@gmail.com>
Date: Fri, 25 Mar 2022 21:46:14 +1100
Subject: [PATCH] Meta: Add ARCH to TOOLS_CFLAGS
---
Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Makefile b/Makefile
index 035fea7..c5a27ab 100644
--- a/Makefile
+++ b/Makefile
@@ -813,6 +813,8 @@ ifeq ($(PLATFORM),serenity)
-pipe -DUSE_ICON -DMAP_ANONYMOUS=MAP_ANON
CLIENT_CFLAGS += $(SDL_CFLAGS)
+ TOOLS_CFLAGS += -DARCH_STRING=\"$(COMPILE_ARCH)\"
+
OPTIMIZEVM = -O3
OPTIMIZE = $(OPTIMIZEVM) -ffast-math