From c6f28522424a641f9b73d1424007ee0345b727b3 Mon Sep 17 00:00:00 2001 From: Zack Buhman Date: Tue, 9 Dec 2025 16:09:12 -0600 Subject: [PATCH] Makefile: add OBJCOPY --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b155efb..b6baca1 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,8 @@ ifeq ($(OS),Windows_NT) LDFLAGS += -Wl,--subsystem,windows -mwindows endif +OBJCOPY ?= objcopy + ifndef GLFW $(error GLFW undefined) endif @@ -59,7 +61,7 @@ OPT = -Og all: main define BUILD_BINARY_O - objcopy \ + $(OBJCOPY) \ -I binary $(OBJARCH) \ --rename-section .data=.data.$(basename $@) \ $< $@