Skip to content

Commit

Permalink
Merge pull request #134 from vszakats/mingw-m64
Browse files Browse the repository at this point in the history
add -m64 CFLAGS when targeting mingw64, add -m32/-m64 to LDFLAGS
  • Loading branch information
gknauf committed Jan 9, 2015
2 parents 4e58589 + acc8089 commit d21b668
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Makefile.m32
Expand Up @@ -75,7 +75,7 @@ endif
endif

ifeq ($(ARCH),w64)
CFLAGS += -D_AMD64_
CFLAGS += -m64 -D_AMD64_
RCFLAGS += -F pe-x86-64
else
CFLAGS += -m32
Expand Down
5 changes: 3 additions & 2 deletions src/Makefile.m32
Expand Up @@ -90,10 +90,12 @@ endif
endif

ifeq ($(ARCH),w64)
CFLAGS += -D_AMD64_
CFLAGS += -m64 -D_AMD64_
LDFLAGS += -m64
RCFLAGS += -F pe-x86-64
else
CFLAGS += -m32
LDFLAGS += -m32
RCFLAGS += -F pe-i386
endif

Expand Down Expand Up @@ -340,4 +342,3 @@ endif

distclean vclean: clean
@$(call DEL, $(curl_PROGRAMS))

0 comments on commit d21b668

Please sign in to comment.