summaryrefslogtreecommitdiffstats
path: root/libdimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-11-12 16:57:58 -0500
committerTavian Barnes <tavianator@gmail.com>2009-11-12 16:57:58 -0500
commit2afbbde4cb6aab900cdf41a27da126ccbc361e52 (patch)
tree535adc0208fb12a264d97572999dd4724b77dc9b /libdimension
parent98f1ff740af109f99cd35ae44108f3fc5842a4d5 (diff)
downloaddimension-2afbbde4cb6aab900cdf41a27da126ccbc361e52.tar.xz
Implement profile-guided optimization builds.
Diffstat (limited to 'libdimension')
-rw-r--r--libdimension/Makefile.am9
1 files changed, 9 insertions, 0 deletions
diff --git a/libdimension/Makefile.am b/libdimension/Makefile.am
index fb15f44..274cbf3 100644
--- a/libdimension/Makefile.am
+++ b/libdimension/Makefile.am
@@ -65,3 +65,12 @@ libdimension_la_SOURCES = $(nobase_include_HEADERS) \
texture.c
libdimension_la_LDFLAGS = -version-info 0:0:0
libdimension_la_LIBADD = -lm -lpthread -lpng -lGL
+
+if PGO
+EXTRA_LTLIBRARIES = libdimension-pgo.la
+libdimension_pgo_la_SOURCES = $(libdimension_la_SOURCES)
+libdimension_pgo_la_LIBADD = $(libdimension_la_LIBADD) -lgcov
+libdimension_pgo_la_CFLAGS = -fprofile-generate=./pgo
+
+libdimension_la_CFLAGS = -fprofile-correction -fprofile-use=$(top_builddir)/tests/libdimension/pgo
+endif