Apply ASLR to executable files.
[platform/upstream/fontconfig.git] / fc-cache / Makefile.am
index 61f5019..f0354d4 100644 (file)
@@ -36,7 +36,7 @@ uninstall-local:
        -$(RM) -rf "$(DESTDIR)$(fc_cachedir)"
 endif
 
-INCLUDES=-I${top_srcdir} -I${top_srcdir}/src $(WARN_CFLAGS)
+AM_CPPFLAGS=-I${top_srcdir} -I${top_srcdir}/src $(WARN_CFLAGS)
 
 bin_PROGRAMS=fc-cache
 
@@ -51,6 +51,9 @@ EXTRA_DIST=fc-cache.sgml $(BUILT_MANS)
 CLEANFILES =
 
 fc_cache_LDADD = ${top_builddir}/src/libfontconfig.la
+### TIZEN_ONLY(20170811): Apply ASLR to executable files.
+fc_cache_LDFLAGS = -pie
+fc_cache_CFLAGS = -fPIE
 
 if USEDOCBOOK
 
@@ -65,3 +68,5 @@ CLEANFILES += ${man_MANS}
 else
 all-local:
 endif
+
+-include $(top_srcdir)/git.mk