link with -Wl,--as-needed
This commit is contained in:
parent
f6bed2cdaa
commit
613977132f
2
Makefile
2
Makefile
|
@ -5,7 +5,7 @@ CFLAGS = -std=c99 -O3 -Wall -Wextra -pedantic
|
||||||
LDFLAGS = -s
|
LDFLAGS = -s
|
||||||
|
|
||||||
CFLAGS += $(shell pkg-config --cflags gtk+-2.0 vte)
|
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
|
term: term.c config.h
|
||||||
${CC} ${CFLAGS} -o $@ $< ${LDFLAGS}
|
${CC} ${CFLAGS} -o $@ $< ${LDFLAGS}
|
||||||
|
|
Loading…
Reference in New Issue