summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYunmi Ha <yunmi.ha@samsung.com>2017-08-16 18:04:55 +0900
committerYunmi Ha <yunmi.ha@samsung.com>2017-08-16 18:04:55 +0900
commite29457ea27c58183f3babc960f233a05d2b69e38 (patch)
tree027702bd201104c9931b471677184f79d9d6ec47
parent867c45ede14cc696e32de0c81df91a284636df27 (diff)
downloaddevice-mapper-e29457ea27c58183f3babc960f233a05d2b69e38.tar.gz
device-mapper-e29457ea27c58183f3babc960f233a05d2b69e38.tar.bz2
device-mapper-e29457ea27c58183f3babc960f233a05d2b69e38.zip
Change-Id: I47478975002971b7ad5e8168fda6dbe99ea04dfe Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
-rw-r--r--tools/Makefile.in7
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