0001-fix-math-library-linking.patch 675 B

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