altos/draw: use --gc-sections in demo program
authorKeith Packard <keithp@keithp.com>
Sun, 26 Feb 2023 22:59:58 +0000 (14:59 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 27 Feb 2023 00:08:08 +0000 (16:08 -0800)
This cleans up all of the unused font bits

Signed-off-by: Keith Packard <keithp@keithp.com>
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)