altos/draw: use --gc-sections in demo program
[fw/altos] / src / draw / Makefile
index 29f5d6809bbdd296376856019aef2546a4fd5bad..cbbd3457db14d7beafe7e714c33a5914221f8ead 100644 (file)
@@ -103,7 +103,7 @@ SRCS=\
 
 OBJS=$(SRCS:.c=.o)
 
-LIBS=-lXrender -lX11 -lm
+LIBS=-lXrender -lX11 -lm -Wl,--gc-sections
 
 CFLAGS=-O2 -g $(WARN_FLAGS)