]> granicus.if.org Git - curl/commitdiff
lib/makefile.m32: add arch -m32/-m64 to LDFLAGS
authorViktor Szakats <vszakats@users.noreply.github.com>
Wed, 29 Apr 2015 10:05:25 +0000 (12:05 +0200)
committerJay Satiro <raysatiro@yahoo.com>
Wed, 29 Apr 2015 17:18:17 +0000 (13:18 -0400)
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)

lib/Makefile.m32

index 7506a01a235cfc9daa66745876bba24bccc2bc8f..f211074afb04c3c32e422a9fc87a6f21d65a5abf 100644 (file)
@@ -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