From 6c28ca738e3510021b59cb96d39e59139e67c40c Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sat, 22 Jan 2022 20:20:21 +0000 Subject: [PATCH] Fixed the makefile conditional. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3784 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 1e9be818..bca523a9 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ PROJECT = tildefriends BUILD_DIR ?= out BUILD_DIR_DBG := $(BUILD_DIR)/debug BUILD_DIR_REL := $(BUILD_DIR)/release -UNAME_M := $(shell uname -s) +UNAME_M := $(shell uname -m) CFLAGS += \ -Wall \ @@ -17,9 +17,9 @@ LDFLAGS += -Wl,-gc-sections debug: CFLAGS += -Og -g release: CFLAGS += -DNDEBUG -O3 -ifeq ($(UNAME_M),x64_64) - debug: CFLAGS += -fsanitize=address -fsanitize=undefined - debug: LDFLAGS += -fsanitize=address -fsanitize=undefined +ifeq ($(UNAME_M),x86_64) +debug: CFLAGS += -fsanitize=address -fsanitize=undefined +debug: LDFLAGS += -fsanitize=address -fsanitize=undefined endif APP_SOURCES = $(wildcard src/*.c)