0078f41c61ef9927abf6ca27940233af92f62d13
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / httping / 0001-fix-math-library-linking.patch
1 Move LDFLAGS+=-lm option to the end.
2 The order of the math library directive '-lm' matters.
3
4 Signed-off-by: Yuvaraj Patil <yuvaraj.patil@wipro.com>
5 ---
6 diff -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)