Skip to content

Commit

Permalink
New hardcoded sysroot fallback in case GCC wasn't compiled with one
Browse files Browse the repository at this point in the history
  • Loading branch information
apaillier-ledger committed Jan 14, 2025
1 parent a2be76c commit fdf40de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile.defines
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ endif

SYSROOT = $(shell $(GCCPATH)arm-none-eabi-gcc -print-sysroot)
ifeq ($(SYSROOT),)
CFLAGS += -I/usr/include
else
CFLAGS += --sysroot="$(SYSROOT)"
# path for Debian-based systems
SYSROOT = /usr/lib/arm-none-eabi
endif
CFLAGS += --sysroot="$(SYSROOT)"

CFLAGS += -fomit-frame-pointer -momit-leaf-frame-pointer

Expand Down

0 comments on commit fdf40de

Please sign in to comment.