diff --git a/Makefile b/Makefile index fbc7d08e7..2e6404a26 100644 --- a/Makefile +++ b/Makefile @@ -28,6 +28,9 @@ include ../phoenix-rtos-build/Makefile.common CFLAGS += -I. -ffreestanding CPPFLAGS += -DVERSION=\"$(VERSION)\" -DRELEASE=\"$(RELEASE)\" -DTARGET_FAMILY=\"$(TARGET_FAMILY)\" +# Add aliases to standard C library functions as required by GCC +LDFLAGS += -Wl,--defsym=memcpy=hal_memcpy,--defsym=memcmp=hal_memcmp,--defsym=memset=hal_memset + # uncomment to enable stack canary checking # CPPFLAGS += -DSTACK_CANARY