|
|
45d01a |
---
|
|
|
45d01a |
Makefile.inc | 2 +-
|
|
|
45d01a |
kpartx/Makefile | 4 ++--
|
|
|
45d01a |
libmpathpersist/Makefile | 2 +-
|
|
|
45d01a |
mpathpersist/Makefile | 4 ++--
|
|
|
45d01a |
multipath/Makefile | 4 ++--
|
|
|
45d01a |
multipathd/Makefile | 2 +-
|
|
|
45d01a |
6 files changed, 9 insertions(+), 9 deletions(-)
|
|
|
45d01a |
|
|
|
45d01a |
Index: multipath-tools-130222/Makefile.inc
|
|
|
45d01a |
===================================================================
|
|
|
45d01a |
--- multipath-tools-130222.orig/Makefile.inc
|
|
|
45d01a |
+++ multipath-tools-130222/Makefile.inc
|
|
|
45d01a |
@@ -48,7 +48,7 @@ ifndef RPM_OPT_FLAGS
|
|
|
45d01a |
RPM_OPT_FLAGS = -O2 -g -pipe -Wformat-security -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
|
|
|
45d01a |
endif
|
|
|
45d01a |
|
|
|
45d01a |
-LDFLAGS += -Wl,-z,relro
|
|
|
45d01a |
+LDFLAGS += -Wl,-z,relro -Wl,-z,now
|
|
|
45d01a |
OPTFLAGS = $(RPM_OPT_FLAGS) -Wunused -Wstrict-prototypes
|
|
|
45d01a |
CFLAGS = $(OPTFLAGS) -DLIB_STRING=\"${LIB}\"
|
|
|
45d01a |
SHARED_FLAGS = -shared
|
|
|
45d01a |
Index: multipath-tools-130222/kpartx/Makefile
|
|
|
45d01a |
===================================================================
|
|
|
45d01a |
--- multipath-tools-130222.orig/kpartx/Makefile
|
|
|
45d01a |
+++ multipath-tools-130222/kpartx/Makefile
|
|
|
45d01a |
@@ -4,7 +4,7 @@
|
|
|
45d01a |
#
|
|
|
45d01a |
include ../Makefile.inc
|
|
|
45d01a |
|
|
|
45d01a |
-CFLAGS += -fPIC -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
|
|
|
45d01a |
+CFLAGS += -fPIE -DPIE -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
|
|
|
45d01a |
|
|
|
45d01a |
LIBDM_API_COOKIE = $(shell grep -Ecs '^[a-z]*[[:space:]]+dm_task_set_cookie' /usr/include/libdevmapper.h)
|
|
|
45d01a |
|
|
|
45d01a |
@@ -12,7 +12,7 @@ ifneq ($(strip $(LIBDM_API_COOKIE)),0)
|
|
|
45d01a |
CFLAGS += -DLIBDM_API_COOKIE
|
|
|
45d01a |
endif
|
|
|
45d01a |
|
|
|
45d01a |
-LDFLAGS = -ldevmapper
|
|
|
45d01a |
+LDFLAGS += -ldevmapper -pie
|
|
|
45d01a |
OBJS = bsd.o dos.o kpartx.o solaris.o unixware.o dasd.o sun.o \
|
|
|
45d01a |
gpt.o mac.o ps3.o crc32.o lopart.o xstrncpy.o devmapper.o
|
|
|
45d01a |
EXEC = kpartx
|
|
|
45d01a |
Index: multipath-tools-130222/libmpathpersist/Makefile
|
|
|
45d01a |
===================================================================
|
|
|
45d01a |
--- multipath-tools-130222.orig/libmpathpersist/Makefile
|
|
|
45d01a |
+++ multipath-tools-130222/libmpathpersist/Makefile
|
|
|
45d01a |
@@ -21,7 +21,7 @@ all: $(LIBS)
|
|
|
45d01a |
|
|
|
45d01a |
$(LIBS):
|
|
|
45d01a |
$(CC) -Wall -c $(CFLAGS) *.c
|
|
|
45d01a |
- $(CC) -shared $(LIBDEPS) -Wl,-soname=$@ $(CFLAGS) -o $@ $(OBJS)
|
|
|
45d01a |
+ $(CC) $(LDFLAGS) -shared $(LIBDEPS) -Wl,-soname=$@ $(CFLAGS) -o $@ $(OBJS)
|
|
|
45d01a |
ln -s $(LIBS) $(DEVLIB)
|
|
|
45d01a |
$(GZIP) mpath_persistent_reserve_in.3 > mpath_persistent_reserve_in.3.gz
|
|
|
45d01a |
$(GZIP) mpath_persistent_reserve_out.3 > mpath_persistent_reserve_out.3.gz
|
|
|
45d01a |
Index: multipath-tools-130222/mpathpersist/Makefile
|
|
|
45d01a |
===================================================================
|
|
|
45d01a |
--- multipath-tools-130222.orig/mpathpersist/Makefile
|
|
|
45d01a |
+++ multipath-tools-130222/mpathpersist/Makefile
|
|
|
45d01a |
@@ -4,8 +4,8 @@ include ../Makefile.inc
|
|
|
45d01a |
|
|
|
45d01a |
OBJS = main.o
|
|
|
45d01a |
|
|
|
45d01a |
-CFLAGS += -I$(multipathdir) -I$(mpathpersistdir)
|
|
|
45d01a |
-LDFLAGS += -lpthread -ldevmapper -L$(mpathpersistdir) -lmpathpersist -L$(multipathdir) -L$(mpathcmddir) -lmpathcmd -lmultipath -ludev
|
|
|
45d01a |
+CFLAGS += -fPIE -DPIE -I$(multipathdir) -I$(mpathpersistdir)
|
|
|
45d01a |
+LDFLAGS += -lpthread -ldevmapper -L$(mpathpersistdir) -lmpathpersist -L$(multipathdir) -L$(mpathcmddir) -lmpathcmd -lmultipath -ludev -pie
|
|
|
45d01a |
|
|
|
45d01a |
EXEC = mpathpersist
|
|
|
45d01a |
|
|
|
45d01a |
Index: multipath-tools-130222/multipath/Makefile
|
|
|
45d01a |
===================================================================
|
|
|
45d01a |
--- multipath-tools-130222.orig/multipath/Makefile
|
|
|
45d01a |
+++ multipath-tools-130222/multipath/Makefile
|
|
|
45d01a |
@@ -6,9 +6,9 @@ include ../Makefile.inc
|
|
|
45d01a |
|
|
|
45d01a |
OBJS = main.o
|
|
|
45d01a |
|
|
|
45d01a |
-CFLAGS += -I$(multipathdir) -I$(mpathcmddir)
|
|
|
45d01a |
+CFLAGS += -fPIE -DPIE -I$(multipathdir) -I$(mpathcmddir)
|
|
|
45d01a |
LDFLAGS += -lpthread -ldevmapper -ldl -L$(multipathdir) -lmultipath -ludev \
|
|
|
45d01a |
- -L$(mpathcmddir) -lmpathcmd
|
|
|
45d01a |
+ -L$(mpathcmddir) -lmpathcmd -pie
|
|
|
45d01a |
|
|
|
45d01a |
EXEC = multipath
|
|
|
45d01a |
|
|
|
45d01a |
Index: multipath-tools-130222/multipathd/Makefile
|
|
|
45d01a |
===================================================================
|
|
|
45d01a |
--- multipath-tools-130222.orig/multipathd/Makefile
|
|
|
45d01a |
+++ multipath-tools-130222/multipathd/Makefile
|
|
|
45d01a |
@@ -8,7 +8,7 @@ include ../Makefile.inc
|
|
|
45d01a |
CFLAGS += -fPIE -DPIE -I$(multipathdir) -I$(mpathpersistdir) -I$(mpathcmddir)
|
|
|
45d01a |
LDFLAGS += -lpthread -ldevmapper -lreadline -ludev -ldl \
|
|
|
45d01a |
-L$(multipathdir) -lmultipath -L$(mpathpersistdir) -lmpathpersist \
|
|
|
45d01a |
- -L$(mpathcmddir) -lmpathcmd -Wl,-z,now -pie
|
|
|
45d01a |
+ -L$(mpathcmddir) -lmpathcmd -pie
|
|
|
45d01a |
|
|
|
45d01a |
#
|
|
|
45d01a |
# debuging stuff
|