link with -Wl,--as-needed

This commit is contained in:
Daniel Micay 2012-05-22 03:51:26 -04:00
parent f6bed2cdaa
commit 613977132f
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ CFLAGS = -std=c99 -O3 -Wall -Wextra -pedantic
LDFLAGS = -s
CFLAGS += $(shell pkg-config --cflags gtk+-2.0 vte)
LDFLAGS += -s $(shell pkg-config --libs gtk+-2.0 vte)
LDFLAGS += -s -Wl,--as-needed $(shell pkg-config --libs gtk+-2.0 vte)
term: term.c config.h
${CC} ${CFLAGS} -o $@ $< ${LDFLAGS}