From c04d51ed274af9a7d5bf59b84fced2149990d312 Mon Sep 17 00:00:00 2001 From: Timofey Titovets Date: Sun, 5 Apr 2015 03:17:28 +0300 Subject: [PATCH] Fix building, move -lm flag I catch build error with missing math.h functions. For fixing that i've move -lm flag to the end of gcc args. Signed-off-by: Timofey Titovets --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8f03fb36f97d..cfe2b7074e20 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ VER=0.10-dev RELEASE=v$(VER) CC = gcc -CFLAGS = -Wall -ggdb -lm +CFLAGS = -Wall -ggdb MANPAGES=duperemove.8 btrfs-extent-same.8 hashstats.8 show-shared-extents.8 @@ -45,7 +45,7 @@ glib_LIBS=$(shell pkg-config --libs glib-2.0) override CFLAGS += -D_FILE_OFFSET_BITS=64 -DVERSTRING=\"$(RELEASE)\" \ $(hash_CFLAGS) $(glib_CFLAGS) -rdynamic -LIBRARY_FLAGS += $(hash_LIBS) $(glib_LIBS) +LIBRARY_FLAGS += $(hash_LIBS) $(glib_LIBS) -lm # make C=1 to enable sparse ifdef C