From: Viktor Szakats <vszakats@users.noreply.github.com>
Date: Wed, 29 Apr 2015 10:05:25 +0000 (+0200)
Subject: lib/makefile.m32: add arch -m32/-m64 to LDFLAGS
X-Git-Tag: curl-7_43_0~199
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=790d1a4816de8976b9cc796138455ed2daf94bb8;p=curl

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)
---

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