Add LDFLAGS to Makefile

This commit is contained in:
twinaphex 2014-12-10 17:12:22 +01:00
parent 6ad4f13fbc
commit 47951f2f9f
1 changed files with 3 additions and 1 deletions

View File

@ -235,13 +235,15 @@ ifeq ($(FRONTEND_SUPPORTS_RGB565), 1)
CFLAGS += -DFRONTEND_SUPPORTS_RGB565 CFLAGS += -DFRONTEND_SUPPORTS_RGB565
endif endif
LDFLAGS := -Wl,--no-undefined
all: $(TARGET) all: $(TARGET)
$(TARGET): $(OBJECTS) $(TARGET): $(OBJECTS)
ifeq ($(STATIC_LINKING), 1) ifeq ($(STATIC_LINKING), 1)
$(AR) rcs $@ $(OBJECTS) $(AR) rcs $@ $(OBJECTS)
else else
$(CC) $(fpic) $(SHARED) $(INCFLAGS) $(OPTIMIZE) -o $@ $(OBJECTS) $(LIBM) $(CC) $(fpic) $(SHARED) $(INCFLAGS) $(OPTIMIZE) -o $@ $(OBJECTS) $(LIBM) $(LDFLAGS)
endif endif
cpu.o: cpu.c cpu.o: cpu.c