From ebe7b81453abada842c843108e3441e94373b208 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 15 Feb 2016 15:46:30 +0100 Subject: [PATCH] Makefile.m32: add support for extra flags Allow specification of CARES_{LD,C}FLAG_EXTRAS envvars for mingw --- Makefile.m32 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile.m32 b/Makefile.m32 index 42149f55..043c76f3 100644 --- a/Makefile.m32 +++ b/Makefile.m32 @@ -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 -