diff --git a/rules/rpl.mk b/rules/rpl.mk index 6725453..16b5889 100644 --- a/rules/rpl.mk +++ b/rules/rpl.mk @@ -1,7 +1,7 @@ LIBPATHS := -L$(WUT_ROOT)/lib CFLAGS := -I$(WUT_ROOT)/include -fno-builtin -ffreestanding CXXFLAGS := $(CFLAGS) -LDFLAGS := -nostdlib -nostartfiles $(WUT_ROOT)/lib/crt0.o -T $(WUT_ROOT)/rules/rpl.ld -pie -fPIE -z common-page-size=64 -z max-page-size=64 +LDFLAGS := -nostdlib -nostartfiles $(WUT_ROOT)/lib/crt0.o -T $(WUT_ROOT)/rules/rpl.ld -pie -fPIE -z common-page-size=64 -z max-page-size=64 -lcoreinit ELF2RPL := $(WUT_ROOT)/bin/elf2rpl include $(WUT_ROOT)/rules/base.mk diff --git a/samples/helloworld/Makefile b/samples/helloworld/Makefile index 0fec51e..5cd587c 100644 --- a/samples/helloworld/Makefile +++ b/samples/helloworld/Makefile @@ -15,7 +15,7 @@ LIBS := -lcoreinit CFLAGS += -O2 -Wall -std=c11 CXXFLAGS += -O2 -Wall -LDFLAGS += -lcoreinit -lgx2 +LDFLAGS += -lgx2 ifneq ($(BUILD),$(notdir $(CURDIR)))