summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-03-20 13:04:09 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-03-20 13:05:11 -0400
commit43075f1ba25d360c9c623b444e3089196e45ef5a (patch)
treed4734c76353b3455f02422a6ea2b004087ff7750 /Makefile
parent04e5ed9135cb847cd576d71c6d55e89dfa77d69a (diff)
downloadkd-forest-43075f1ba25d360c9c623b444e3089196e45ef5a.tar.xz
Use link-time optimization.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7a23863..b55c57c 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@
#####################################################################
CC ?= gcc
-CFLAGS ?= -std=c99 -pipe -O2 -Werror -Wall -Wpedantic -Wextra -Wno-sign-compare -Wno-unused-parameter -Wunreachable-code -Wshadow -Wpointer-arith -Wwrite-strings -Wcast-align -Wstrict-prototypes
+CFLAGS ?= -std=c99 -pipe -O2 -flto -Werror -Wall -Wpedantic -Wextra -Wno-sign-compare -Wno-unused-parameter -Wunreachable-code -Wshadow -Wpointer-arith -Wwrite-strings -Wcast-align -Wstrict-prototypes
LDFLAGS ?= -Wl,-O1,--sort-common,--as-needed,-z,relro
LIBS ?= -lm -lpng
RM ?= rm -f