aboutsummaryrefslogtreecommitdiff
path: root/lib/Makefile.m32
diff options
context:
space:
mode:
authorViktor Szakats <vszakats@users.noreply.github.com>2015-04-29 12:05:25 +0200
committerJay Satiro <raysatiro@yahoo.com>2015-04-29 13:18:17 -0400
commit790d1a4816de8976b9cc796138455ed2daf94bb8 (patch)
treee3e7eeeff0a319b1d901f7751a47e42ad6d5682f /lib/Makefile.m32
parent1c0f70f534d155de5e3e7013c48ebd15848c16bc (diff)
lib/makefile.m32: add arch -m32/-m64 to LDFLAGS
This fixes using a multi-target mingw distro to build curl .dll for the non-default target. (mirroring the same patch present in src/makefile.m32)
Diffstat (limited to 'lib/Makefile.m32')
-rw-r--r--lib/Makefile.m322
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Makefile.m32 b/lib/Makefile.m32
index 7506a01a2..f211074af 100644
--- a/lib/Makefile.m32
+++ b/lib/Makefile.m32
@@ -76,9 +76,11 @@ endif
ifeq ($(ARCH),w64)
CFLAGS += -m64 -D_AMD64_
+LDFLAGS += -m64
RCFLAGS += -F pe-x86-64
else
CFLAGS += -m32
+LDFLAGS += -m32
RCFLAGS += -F pe-i386
endif