summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-cluster/drbd-utils/files')
-rw-r--r--sys-cluster/drbd-utils/files/drbd-utils-9.23.1-respect-flags.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/sys-cluster/drbd-utils/files/drbd-utils-9.23.1-respect-flags.patch b/sys-cluster/drbd-utils/files/drbd-utils-9.23.1-respect-flags.patch
new file mode 100644
index 000000000000..259f6aa35632
--- /dev/null
+++ b/sys-cluster/drbd-utils/files/drbd-utils-9.23.1-respect-flags.patch
@@ -0,0 +1,21 @@
+--- a/user/drbdmon/Makefile.in
++++ b/user/drbdmon/Makefile.in
+@@ -1,6 +1,6 @@
+-CXXFLAGS=-std=c++11 -I. -I../shared -Icppdsaext/src -Wall -Werror -pedantic-errors -fPIC -O2 \
+--Wsign-compare -Wpointer-arith -Wswitch-default -Wswitch-enum -Wtype-limits \
+--Wmissing-declarations -Wshadow
++CPPFLAGS = -I. -I../shared -Icppdsaext/src
++CXXFLAGS ?= -Wall -Werror -pedantic-errors -fPIC -O2 -Wsign-compare -Wpointer-arith -Wswitch-default -Wswitch-enum -Wtype-limits -Wmissing-declarations -Wshadow
++CXXFLAGS += -std=c++11 -O2 -fPIC
+ CXX = @CXX@
+ LIBS = @LIBS@
+
+@@ -51,7 +51,7 @@ $(dsaext-obj): $(basename $(dsaext-obj)).cpp $(basename $(dsaext-obj)).h
+ $(integerparse-obj): $(basename $(integerparse-obj)).cpp $(basename $(integerparse-obj)).h
+
+ drbdmon: $(ls-obj)
+- $(CXX) -o $@ $(CPPFLAGS) $(CXXFLAGS) $^ $(LIBS)
++ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $^ $(LIBS) -o $@
+
+ # do not try to rebuild Makefile itself
+ Makefile: ;