From ac9abd01bf28cc83187d7c2d5004716402d16e02 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 10 Dec 2013 22:25:38 +0100 Subject: [PATCH] (Clang) Linker fix --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index c199b853..d31779cc 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,10 @@ CFLAGS += -Wall -ggdb -falign-functions=2 CFLAGS += -I. ifndef DEBUG CFLAGS += -O2 -DNDEBUG -ffunction-sections +ifeq ($(findstring clang,$(CC)),) LDFLAGS += -Wl,--gc-sections endif +endif #CFLAGS += -DEVT_LOG #CFLAGS += -DDRC_CMP #cpu_cmp = 1 -- 2.39.5