mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-13 10:15:00 +00:00
Fix mongoose/examples compilation with mingw
PUBLISHED_FROM=46800f43ba03082cc589d70e6118d754f4cdc9d0
This commit is contained in:
committed by
Marko Mikulicic
parent
4927195ee4
commit
df311203dc
@@ -1,12 +1,15 @@
|
||||
PROG = api_server
|
||||
SOURCES = $(PROG).c sqlite3.c db_plugin_sqlite.c ../../mongoose.c
|
||||
CFLAGS = -W -Wall -pthread $(CFLAGS_EXTRA)
|
||||
CFLAGS = -W -Wall $(CFLAGS_EXTRA)
|
||||
|
||||
|
||||
ifeq ($(OS), Windows_NT)
|
||||
CFLAGS += -lws2_32 -D_MG_PROVIDE_STRNLEN
|
||||
CC = mingw32-gcc
|
||||
else
|
||||
UNAME_S := $(shell uname -s)
|
||||
ifeq ($(UNAME_S), Linux)
|
||||
CFLAGS += -ldl -lm
|
||||
CFLAGS += -ldl -lm -pthread
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user