From 381df7332afd38e6f6d193bc673447d7342764b0 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Sun, 23 May 2021 00:24:06 +0200 Subject: Try fixing compilation issues on macOS --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index bf1f4f6..55c4ade 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ # Path to the development kit (devkitARM) and the GBA library. DEVKITPRO := /opt/devkitpro DEVKITARM := /opt/devkitpro/devkitARM -PATH := $(DEVKITARM)/bin:$(PATH) +DEVKITBIN := $(DEVKITARM)/bin LIBGBA_DIR := $(DEVKITPRO)/libgba LIBGBA_SRC := /opt/devkitpro/libgba/include/ LIBGBA := $(LIBGBA_DIR)/lib/libgba.a @@ -28,8 +28,8 @@ ELF := $(BUILD_DIR)/$(TARGET).elf BIN := $(BUILD_DIR)/$(TARGET).gba # Compiler and linker configuration. -CC := arm-none-eabi-gcc -OBJCOPY := arm-none-eabi-objcopy +CC := $(DEVKITBIN)/arm-none-eabi-gcc +OBJCOPY := $(DEVKITBIN)/arm-none-eabi-objcopy ARCH := -mthumb -mthumb-interwork SPECS := -specs=gba.specs CFLAGS := -Wall -Wextra -pedantic -fno-strict-aliasing -Wno-incompatible-pointer-types -- cgit v1.2.1