]> granicus.if.org Git - curl/commitdiff
build: in Makefile.m32 pass -F flag to windres.
authorGuenter Knauf <lists@gknw.net>
Tue, 18 Nov 2014 12:44:03 +0000 (13:44 +0100)
committerGuenter Knauf <lists@gknw.net>
Tue, 18 Nov 2014 12:44:03 +0000 (13:44 +0100)
lib/Makefile.m32
src/Makefile.m32

index c28d4526c8082c1f4ab71932275b499d2d72829f..cb301c3837c1075a06e5d0bfc3ac8ded6646fb19 100644 (file)
@@ -70,7 +70,12 @@ LDFLAGS      = -s
 AR     = $(CROSSPREFIX)ar
 RANLIB = $(CROSSPREFIX)ranlib
 RC     = $(CROSSPREFIX)windres
-RCFLAGS        = --include-dir=$(PROOT)/include -DDEBUGBUILD=0 -O COFF -i
+RCFLAGS        = --include-dir=$(PROOT)/include -DDEBUGBUILD=0 -O COFF
+ifeq ($(ARCH),w64)
+RCFLAGS        += -F pe-x86-64
+else
+RCFLAGS        += -F pe-i386
+endif
 STRIP  = $(CROSSPREFIX)strip -g
 
 # Platform-dependent helper tool macros
@@ -297,7 +302,7 @@ $(libcurl_dll_LIBRARY): $(libcurl_a_OBJECTS) $(RESOURCE) $(libcurl_dll_DEPENDENC
        $(CC) $(INCLUDES) $(CFLAGS) -c $< -o $@
 
 %.res: %.rc
-       $(RC) $(RCFLAGS) $< -o $@
+       $(RC) $(RCFLAGS) -i $< -o $@
 
 clean:
 ifeq "$(wildcard $(PROOT)/include/curl/curlbuild.h.dist)" "$(PROOT)/include/curl/curlbuild.h.dist"
index ddfed417a832fb6af0b464dd660d7eeb8ebc5698..614c2b637f243939a326f93e42f9c232a0755786 100644 (file)
@@ -81,7 +81,13 @@ endif
 LDFLAGS        = -s
 AR     = $(CROSSPREFIX)ar
 RC     = $(CROSSPREFIX)windres
-RCFLAGS        = --include-dir=$(PROOT)/include -O COFF -i
+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
@@ -320,7 +326,7 @@ tool_hugehelp.c:
        $(CC) $(INCLUDES) $(CFLAGS) -c $<
 
 %.res: %.rc
-       $(RC) $(RCFLAGS) $< -o $@
+       $(RC) $(RCFLAGS) -i $< -o $@
 
 clean:
 ifeq "$(wildcard tool_hugehelp.c.cvs)" "tool_hugehelp.c.cvs"