Fix Makefile's for MSYS* of cygwin

This commit is contained in:
Vincent Torri 2017-02-21 21:26:36 +01:00
parent c0877a7b5a
commit 3ae6381670
3 changed files with 18 additions and 6 deletions

View File

@ -14,7 +14,11 @@ BIN_TMP := bin
MODEST_OPTIMIZATION_LEVEL ?= -O2
CFLAGS ?= -Wall -Werror
CFLAGS += $(MODEST_OPTIMIZATION_LEVEL) -Wno-unused-variable -fPIC --std=c99 -I$(SRCDIR)
CFLAGS += $(MODEST_OPTIMIZATION_LEVEL) -Wno-unused-variable --std=c99 -I$(SRCDIR)
ifneq ($(OS),Windows_NT)
CFLAGS += -fPIC
endif
ifdef MODEST_BUILD_DEBUG
CFLAGS += -g

View File

@ -10,7 +10,11 @@ INCLUDE_TMP := include
MODEST_OPTIMIZATION_LEVEL ?= -O2
CFLAGS ?= -Wall -Werror
CFLAGS += $(MODEST_OPTIMIZATION_LEVEL) -Wno-unused-variable -fPIC --std=c99 -I../include
CFLAGS += $(MODEST_OPTIMIZATION_LEVEL) -Wno-unused-variable --std=c99 -I../include
ifneq ($(OS),Windows_NT)
CFLAGS += -fPIC
endif
MODEST_BUILD_WITHOUT_THREADS ?= NO
ifeq ($(MODEST_BUILD_WITHOUT_THREADS),YES)

View File

@ -10,7 +10,11 @@ INCLUDE_TMP := include
MODEST_OPTIMIZATION_LEVEL ?= -O2
CFLAGS ?= -Wall -Werror
CFLAGS += $(MODEST_OPTIMIZATION_LEVEL) -Wno-unused-variable -fPIC --std=c99 -I../include
CFLAGS += $(MODEST_OPTIMIZATION_LEVEL) -Wno-unused-variable --std=c99 -I../include
ifneq ($(OS),Windows_NT)
CFLAGS += -fPIC
endif
MODEST_BUILD_WITHOUT_THREADS ?= NO
ifeq ($(MODEST_BUILD_WITHOUT_THREADS),YES)