Skip to content

Commit

Permalink
Update CFLAGS for macOS arm64 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
basti564 committed Mar 9, 2024
1 parent 1536182 commit 3e9556d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion channel/banner/tools/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@

CFLAGS = -O3 -Wall -I/usr/local/include -L/usr/local/lib
UNAME_S := $(shell uname -s)
UNAME_M := $(shell uname -m)

ifeq ($(UNAME_S),Darwin)
ifeq ($(UNAME_M),arm64)
CFLAGS = -O3 -Wall -I/opt/homebrew/include -L/opt/homebrew/lib
else
CFLAGS = -O3 -Wall -I/usr/local/include -L/usr/local/lib
endif
endif

CC = $(PREFIX)gcc
STRIP = $(PREFIX)strip
Expand Down

0 comments on commit 3e9556d

Please sign in to comment.