xref: /OK3568_Linux_fs/buildroot/package/httping/0001-fix-math-library-linking.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Move LDFLAGS+=-lm option to the end.
2The order of the math library directive '-lm' matters.
3
4Signed-off-by: Yuvaraj Patil <yuvaraj.patil@wipro.com>
5---
6diff -Nurp httping-2.3.4_orig/Makefile httping-2.3.4/Makefile
7--- httping-2.3.4_orig/Makefile	2014-07-23 16:16:36.495546288 +0530
8+++ httping-2.3.4/Makefile	2014-07-23 16:18:42.547541002 +0530
9@@ -37,7 +37,6 @@ DEBUG=yes
10 WFLAGS=-Wall -W
11 OFLAGS=
12 CFLAGS+=$(WFLAGS) $(OFLAGS) -DVERSION=\"$(VERSION)\" -DLOCALEDIR=\"$(LOCALEDIR)\"
13-LDFLAGS+=-lm
14
15 PACKAGE=$(TARGET)-$(VERSION)
16 PREFIX?=/usr
17@@ -97,6 +96,8 @@ ifeq ($(ARM),yes)
18 CC=arm-linux-gcc
19 endif
20
21+LDFLAGS+=-lm
22+
23 all: $(TARGET) $(TRANSLATIONS)
24
25 $(TARGET): $(OBJS)
26