blob: 354be0ff187e27fbf593342486e2e3726bc7d949 [file] [log] [blame]
Patrick Williams58776372022-04-13 09:07:35 -05001From a61b9ff2d2cb7387a5cd347b2201535ee45a46ee Mon Sep 17 00:00:00 2001
2From: Sakib Sajal <sakib.sajal@windriver.com>
3Date: Thu, 31 Mar 2022 15:09:58 -0400
4Subject: [PATCH] drbdmon: add LDFLAGS when linking
5
6Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
7---
8 user/drbdmon/Makefile.in | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11--- a/user/drbdmon/Makefile.in
12+++ b/user/drbdmon/Makefile.in
13@@ -1,6 +1,6 @@
14 CXXFLAGS=-std=c++11 -I. -I../shared -Icppdsaext/src -Wall -Werror -pedantic-errors -fPIC -O2 \
15 -Wsign-compare -Wpointer-arith -Wswitch-default -Wswitch-enum -Wtype-limits \
16--Wmissing-declarations -Wshadow
17+-Wmissing-declarations -Wshadow -Wno-defaulted-function-deleted -Wno-unused-private-field
18 CXX = @CXX@
19 LIBS = @LIBS@
20
21@@ -51,7 +51,7 @@ $(dsaext-obj): $(basename $(dsaext-obj))
22 $(integerparse-obj): $(basename $(integerparse-obj)).cpp $(basename $(integerparse-obj)).h
23
24 drbdmon: $(ls-obj)
25- $(CXX) -o $@ $(CPPFLAGS) $(CXXFLAGS) $^ $(LIBS)
26+ $(CXX) -o $@ $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $^ $(LIBS)
27
28 # do not try to rebuild Makefile itself
29 Makefile: ;