From 84d03a217d0e80f569fd75505641b27d003ffef1 Mon Sep 17 00:00:00 2001 From: lexborisov Date: Wed, 1 Mar 2017 16:21:57 +0300 Subject: [PATCH] ldflags --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d6e13bc..8023f66 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,7 @@ MODEST_OPTIMIZATION_LEVEL ?= -O2 CFLAGS ?= -Wall -Werror CFLAGS += $(MODEST_OPTIMIZATION_LEVEL) -Wno-unused-variable --std=c99 -I$(SRCDIR) +LDFLAGS += -lm ifneq ($(OS),Windows_NT) CFLAGS += -fPIC @@ -62,7 +63,7 @@ include $(TARGET)/modest/Makefile.mk OBJS := $(patsubst %.c,%.o,$(SRCS)) shared: $(OBJS) - $(CC) -shared $(IMP_FLAG) $(LDFLAGS) $(OBJS) -o $(LIB_TMP)/lib$(LIBNAME)$(LIBPOSTFIX) -lm + $(CC) -shared $(IMP_FLAG) $(LDFLAGS) $(OBJS) -o $(LIB_TMP)/lib$(LIBNAME)$(LIBPOSTFIX) static: shared $(AR) crus $(LIB_TMP)/lib$(LIBNAME)$(LIBSTATIC_POSTFIX).a $(OBJS)