diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.m32 | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/Makefile.m32 b/src/Makefile.m32 index 707b5bc2a..4f1c99bdd 100644 --- a/src/Makefile.m32 +++ b/src/Makefile.m32 @@ -66,16 +66,6 @@ ifndef LIBCARES_PATH LIBCARES_PATH = $(PROOT)/ares endif -# Set environment var ARCH to your architecture to override autodetection. -ifndef ARCH -TARGET := $(shell $(CC) -dumpmachine) -ifeq ($(findstring x86_64,$(TARGET)),x86_64) -ARCH = w64 -else -ARCH = w32 -endif -endif - CC = $(CROSSPREFIX)gcc CFLAGS = -g -O2 -Wall CFLAGS += -fno-strict-aliasing @@ -90,6 +80,16 @@ STRIP = $(CROSSPREFIX)strip -g # PERL = perl # NROFF = nroff +# Set environment var ARCH to your architecture to override autodetection. +ifndef ARCH +TARGET := $(shell $(CC) -dumpmachine) +ifeq ($(findstring x86_64,$(TARGET)),x86_64) +ARCH = w64 +else +ARCH = w32 +endif +endif + ifeq ($(ARCH),w64) CFLAGS += -D_AMD64_ RCFLAGS += -F pe-x86-64 |