diff options
author | Guenter Knauf <lists@gknw.net> | 2014-11-19 11:46:02 +0100 |
---|---|---|
committer | Guenter Knauf <lists@gknw.net> | 2014-11-19 11:46:02 +0100 |
commit | 140ca2dcc28ae201c7fd6deb393dc4bd7c80a051 (patch) | |
tree | eefc10e85ac264091debebd45c2f079e5a1e44c1 /src/Makefile.m32 | |
parent | a08decdfed2e83001c47b1eb771b79756d2bab4c (diff) | |
download | curl-140ca2dcc28ae201c7fd6deb393dc4bd7c80a051.tar.gz |
build: in Makefile.m32 simplify platform flags.
Diffstat (limited to 'src/Makefile.m32')
-rw-r--r-- | src/Makefile.m32 | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/Makefile.m32 b/src/Makefile.m32 index 5cacade57..707b5bc2a 100644 --- a/src/Makefile.m32 +++ b/src/Makefile.m32 @@ -79,27 +79,25 @@ endif CC = $(CROSSPREFIX)gcc CFLAGS = -g -O2 -Wall CFLAGS += -fno-strict-aliasing -ifeq ($(ARCH),w64) -CFLAGS += -D_AMD64_ -else -CFLAGS += -m32 -endif # comment LDFLAGS below to keep debug info LDFLAGS = -s AR = $(CROSSPREFIX)ar RC = $(CROSSPREFIX)windres RCFLAGS = --include-dir=$(PROOT)/include -O COFF -ifeq ($(ARCH),w64) -RCFLAGS += -F pe-x86-64 -else -RCFLAGS += -F pe-i386 -endif STRIP = $(CROSSPREFIX)strip -g # We may need these someday # PERL = perl # NROFF = nroff +ifeq ($(ARCH),w64) +CFLAGS += -D_AMD64_ +RCFLAGS += -F pe-x86-64 +else +CFLAGS += -m32 +RCFLAGS += -F pe-i386 +endif + # Platform-dependent helper tool macros ifeq ($(findstring /sh,$(SHELL)),/sh) DEL = rm -f $1 |