mirror of
https://github.com/lexborisov/Modest
synced 2024-11-21 21:31:25 +03:00
ldflags
This commit is contained in:
parent
acea2403a3
commit
84d03a217d
3
Makefile
3
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)
|
||||
|
Loading…
Reference in New Issue
Block a user