Makefile.m32: add support for extra flags

Allow specification of CARES_{LD,C}FLAG_EXTRAS envvars
for mingw
This commit is contained in:
Viktor Szakats 2016-02-15 15:46:30 +01:00 committed by David Drysdale
parent 3b1ff9da74
commit ebe7b81453
1 changed files with 2 additions and 3 deletions

View File

@ -17,9 +17,9 @@ RANLIB = ranlib
#RM = rm -f
CP = cp -afv
CFLAGS = -O2 -Wall -I.
CFLAGS = $(CARES_CFLAG_EXTRAS) -O2 -Wall -I.
CFLAGS += -DCARES_STATICLIB
LDFLAGS = -s
LDFLAGS = $(CARES_LDFLAG_EXTRAS) -s
LIBS = -lwsock32
# Makefile.inc provides the CSOURCES and HHEADERS defines
@ -74,4 +74,3 @@ distclean: clean
ifeq "$(wildcard ares_build.h.dist)" "ares_build.h.dist"
$(RM) ares_build.h
endif