diff options
author | Yunmi Ha <yunmi.ha@samsung.com> | 2017-08-16 18:04:55 +0900 |
---|---|---|
committer | Yunmi Ha <yunmi.ha@samsung.com> | 2017-08-16 18:04:55 +0900 |
commit | e29457ea27c58183f3babc960f233a05d2b69e38 (patch) | |
tree | 027702bd201104c9931b471677184f79d9d6ec47 | |
parent | 867c45ede14cc696e32de0c81df91a284636df27 (diff) | |
download | device-mapper-e29457ea27c58183f3babc960f233a05d2b69e38.tar.gz device-mapper-e29457ea27c58183f3babc960f233a05d2b69e38.tar.bz2 device-mapper-e29457ea27c58183f3babc960f233a05d2b69e38.zip |
Enable ASLR featuresubmit/tizen_4.0/20170828.100005submit/tizen/20170818.014207accepted/tizen/unified/20170821.051051accepted/tizen/4.0/unified/20170828.222531
Change-Id: I47478975002971b7ad5e8168fda6dbe99ea04dfe
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
-rw-r--r-- | tools/Makefile.in | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/Makefile.in b/tools/Makefile.in index 15843f0..f12c335 100644 --- a/tools/Makefile.in +++ b/tools/Makefile.in @@ -119,14 +119,17 @@ include $(top_builddir)/make.tmpl LIBS += $(UDEV_LIBS) +dmsetup_CFLAGS = $(CFLAGS) -fPIE +dmsetup_LDFLAGS = $(LDFLAGS) -pie + device-mapper: $(TARGETS_DM) dmsetup: dmsetup.o $(top_builddir)/libdm/libdevmapper.$(LIB_SUFFIX) - $(CC) $(CFLAGS) $(LDFLAGS) -L$(top_builddir)/libdm \ + $(CC) $(dmsetup_CFLAGS) $(dmsetup_LDFLAGS) -L$(top_builddir)/libdm \ -o $@ dmsetup.o -ldevmapper $(LIBS) dmsetup.static: dmsetup.o $(interfacebuilddir)/libdevmapper.a - $(CC) $(CFLAGS) $(LDFLAGS) -static -L$(interfacebuilddir) \ + $(CC) $(dmsetup_CFLAGS) $(dmsetup_LDFLAGS) -static -L$(interfacebuilddir) \ -o $@ dmsetup.o -ldevmapper $(STATIC_LIBS) $(LIBS) all: device-mapper |