forked from pool/sanlock
- Update to sanlock 3.4.0 - Enable fence_sanlockd so that lvm2 can use the new lvmlocked feature in cluster environment * fix unpackaged file - /usr/sbin/rcfence_sanlockd * refresh suse-no-date-time.patch to cover the same issue in fence_sanlockd * adjust fence_sanlockd.init and suse-systemd.patch - Enable sanlk-reset subpackage - Fix "undefined symbol to io_suspend" at runtime, bsc#1030060 suse-fix-link-errors.patch OBS-URL: https://build.opensuse.org/request/show/481647 OBS-URL: https://build.opensuse.org/package/show/Virtualization/sanlock?expand=0&rev=28
66 lines
2.5 KiB
Diff
66 lines
2.5 KiB
Diff
Index: sanlock-3.4.0/fence_sanlock/Makefile
|
|
===================================================================
|
|
--- sanlock-3.4.0.orig/fence_sanlock/Makefile
|
|
+++ sanlock-3.4.0/fence_sanlock/Makefile
|
|
@@ -35,7 +35,7 @@ CFLAGS += -DVERSION=\"$(VER)\" -I../src
|
|
CFLAGS += -fPIE -DPIE
|
|
|
|
LDFLAGS = -Wl,-z,now -Wl,-z,relro -pie
|
|
-LDADD = -lrt -laio -lblkid -lsanlock -lwdmd
|
|
+LDADD = -lsanlock -lwdmd -lrt -laio -lblkid
|
|
|
|
all: $(TARGET1) $(TARGET2)
|
|
|
|
Index: sanlock-3.4.0/src/Makefile
|
|
===================================================================
|
|
--- sanlock-3.4.0.orig/src/Makefile
|
|
+++ sanlock-3.4.0/src/Makefile
|
|
@@ -96,17 +96,16 @@ CFLAGS += -DVERSION=\"$(VER)\"
|
|
CMD_CFLAGS = $(CFLAGS) -fPIE -DPIE
|
|
|
|
CMD_LDFLAGS += -Wl,-z,now -Wl,-z,relro -pie
|
|
-CMD_LDADD += -lpthread -luuid -lrt -laio -lblkid -lsanlock -L../wdmd -lwdmd
|
|
+CMD_LDADD += -lsanlock -L../wdmd -lwdmd -lpthread -luuid -lrt -laio -lblkid
|
|
|
|
-LIB_ENTIRE_LDFLAGS += -lpthread -lrt -laio -lblkid -L../wdmd -lwdmd
|
|
LIB_ENTIRE_LDFLAGS += -Wl,-z,relro -pie
|
|
-
|
|
+LIB_ENTIRE_LDADD += -L../wdmd -lwdmd -lpthread -lrt -laio -lblkid
|
|
LIB_CLIENT_LDFLAGS += -Wl,-z,relro -pie
|
|
|
|
all: $(LIBSO_ENTIRE_TARGET) $(LIBSO_CLIENT_TARGET) $(CMD_TARGET) $(LIBPC_ENTIRE_TARGET) $(LIBPC_CLIENT_TARGET)
|
|
|
|
-$(LIBSO_ENTIRE_TARGET): $(LIB_ENTIRE_SOURCE)
|
|
- $(CC) $(CFLAGS) $(LIB_ENTIRE_LDFLAGS) -shared -fPIC -o $@ -Wl,-soname=$(LIB_ENTIRE_TARGET).so.$(SOMAJOR) $^
|
|
+$(LIBSO_ENTIRE_TARGET):
|
|
+ $(CC) $(CFLAGS) $(LIB_ENTIRE_LDFLAGS) -shared -fPIC -o $@ -Wl,-soname=$(LIB_ENTIRE_TARGET).so.$(SOMAJOR) $(LIB_ENTIRE_SOURCE) $(LIB_ENTIRE_LDADD) $^
|
|
ln -sf $(LIBSO_ENTIRE_TARGET) $(LIB_ENTIRE_TARGET).so
|
|
ln -sf $(LIBSO_ENTIRE_TARGET) $(LIB_ENTIRE_TARGET).so.$(SOMAJOR)
|
|
|
|
Index: sanlock-3.4.0/tests/Makefile
|
|
===================================================================
|
|
--- sanlock-3.4.0.orig/tests/Makefile
|
|
+++ sanlock-3.4.0/tests/Makefile
|
|
@@ -34,7 +34,7 @@ CFLAGS += -D_GNU_SOURCE -g \
|
|
-fasynchronous-unwind-tables \
|
|
-fdiagnostics-show-option
|
|
|
|
-LDFLAGS = -lrt -laio -lblkid -lsanlock
|
|
+LDFLAGS = -lsanlock -lrt -laio -lblkid
|
|
|
|
all: $(TARGET1) $(TARGET2) $(TARGET3) $(TARGET4) $(TARGET5) $(TARGET6) $(TARGET7)
|
|
|
|
Index: sanlock-3.4.0/reset/Makefile
|
|
===================================================================
|
|
--- sanlock-3.4.0.orig/reset/Makefile
|
|
+++ sanlock-3.4.0/reset/Makefile
|
|
@@ -35,7 +35,7 @@ CFLAGS += -DVERSION=\"$(VER)\" -I../src
|
|
CFLAGS += -fPIE -DPIE
|
|
|
|
LDFLAGS = -Wl,-z,now -Wl,-z,relro -pie
|
|
-LDADD = -lsanlock -lwdmd
|
|
+LDADD = -lsanlock -lwdmd -lrt -laio -lblkid
|
|
|
|
all: $(TARGET1) $(TARGET2)
|
|
|