From 2afbbde4cb6aab900cdf41a27da126ccbc361e52 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 12 Nov 2009 16:57:58 -0500 Subject: Implement profile-guided optimization builds. --- libdimension/Makefile.am | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libdimension') 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 -- cgit v1.2.3