summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorSoonKyu Park <sk7.park@samsung.com>2017-08-17 20:58:15 +0900
committerSoonKyu Park <sk7.park@samsung.com>2017-08-17 20:58:15 +0900
commit05613e6729bee5382c51138a07014e109a8c15b2 (patch)
treeaf684115448da6afd84da84e257e55f9ac76d80f /Makefile.am
parent4998addba8f80a46875b84d7a9a20f4ccddff863 (diff)
downloadrpm-05613e6729bee5382c51138a07014e109a8c15b2.tar.gz
rpm-05613e6729bee5382c51138a07014e109a8c15b2.tar.bz2
rpm-05613e6729bee5382c51138a07014e109a8c15b2.zip
Change-Id: I12544b91c972bcb563e92bff9d76ea5cf289280d
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index d9bfc673c..3cb3365b4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -113,18 +113,24 @@ rpm_CPPFLAGS = $(AM_CPPFLAGS) -DIAM_RPMEIU -DIAM_RPMQ -DIAM_RPMV
rpm_LDADD = libcliutils.la
rpm_LDADD += lib/librpm.la rpmio/librpmio.la
rpm_LDADD += @WITH_NSS_LIB@ @WITH_POPT_LIB@ @WITH_ZLIB_LIB@
+rpm_CFLAGS = $(CFLAGS) -fPIE
+rpm_LDFLAGS = $(LDFLAGS) -pie
rpmdb_SOURCES = rpmdb.c debug.h system.h
rpmdb_CPPFLAGS = $(AM_CPPFLAGS)
rpmdb_LDADD = libcliutils.la
rpmdb_LDADD += lib/librpm.la rpmio/librpmio.la
rpmdb_LDADD += @WITH_NSS_LIB@ @WITH_POPT_LIB@ @WITH_ZLIB_LIB@
+rpmdb_CFLAGS = $(CFLAGS) -fPIE
+rpmdb_LDFLAGS = $(LDFLAGS) -pie
rpmkeys_SOURCES = rpmkeys.c debug.h system.h
rpmkeys_CPPFLAGS = $(AM_CPPFLAGS)
rpmkeys_LDADD = libcliutils.la
rpmkeys_LDADD += lib/librpm.la rpmio/librpmio.la
rpmkeys_LDADD += @WITH_NSS_LIB@ @WITH_POPT_LIB@ @WITH_ZLIB_LIB@
+rpmkeys_CFLAGS = $(CFLAGS) -fPIE
+rpmkeys_LDFLAGS = $(LDFLAGS) -pie
rpmsign_SOURCES = rpmsign.c debug.h system.h
rpmsign_CPPFLAGS = $(AM_CPPFLAGS)
@@ -147,7 +153,8 @@ rpmspec_LDADD += @WITH_NSS_LIB@ @WITH_POPT_LIB@ @WITH_ZLIB_LIB@
rpm2cpio_SOURCES = rpm2cpio.c debug.h system.h
rpm2cpio_LDADD = lib/librpm.la rpmio/librpmio.la
rpm2cpio_LDADD += @WITH_NSS_LIB@ @WITH_POPT_LIB@ @WITH_ZLIB_LIB@
-
+rpm2cpio_CFLAGS = $(CFLAGS) -fPIE
+rpm2cpio_LDFLAGS = $(LDFLAGS) -pie
if LIBELF
rpmconfig_SCRIPTS += scripts/find-debuginfo.sh
@@ -176,6 +183,8 @@ dist_bin_SCRIPTS = scripts/gendiff
bin_PROGRAMS += rpmqpack
rpmqpack_SOURCES = rpmqpack.c
rpmqpack_LDADD = lib/librpm.la
+rpmqpack_CFLAGS = $(CFLAGS) -fPIE
+rpmqpack_LDFLAGS = $(LDFLAGS) -pie
rpmconfig_DATA = rpmrc
rpmrc: $(top_srcdir)/rpmrc.in