diff --git a/common/Makefile.common b/common/Makefile.common index 7072ede53..6fb2045ff 100644 --- a/common/Makefile.common +++ b/common/Makefile.common @@ -41,7 +41,7 @@ PATHSEP=/ FLASH_TOOL=client/flasher DETECTED_OS=UNAME # You may/should set this in your environment -LIBGCC ?= $(DEVKITARM)/lib/gcc/arm-eabi/4.4.2/libgcc.a +LIBGCC ?= $(shell $(CC) -print-libgcc-file-name) PATH := $(PATH):$(DEVKITARM)/bin else