> On Sat, 1 Feb 2014, Thomas Braun wrote: >> Unfortunately the compilation fails because the object files from the vtls >> folder are expected in lib/vtls but in fact they are in lib. >> >> Attached is a patch which hopefully explains the problem. > > Thanks! > > But why are the object files not in vtls? The path to the source file works > so > it should just generate the object files there too! Isn't it the compiler > line > that should rather be improved? It feels like it could be made better than a > copy. > > Like making "$(CC) $(INCLUDES) $(CFLAGS) -c $<" use -o $@ or something?
Yeep, that is definitly the nicer approach and it works too. I've attached a patch which does exactly what you proposed. Thomas
>From 9c8a4b506a30db90b3ecd1c78fb3866bc2dd2f5f Mon Sep 17 00:00:00 2001 From: Thomas Braun <[email protected]> Date: Sat, 8 Feb 2014 17:26:53 +0100 Subject: [PATCH] Fix compilation with make mingw32 The source files from lib/vtls where generated in lib instead of lib/vtls. Verified-by: Thomas Braun <[email protected]> diff --git a/lib/Makefile.m32 b/lib/Makefile.m32 index a401c71..afe3982 100644 --- a/lib/Makefile.m32 +++ b/lib/Makefile.m32 @@ -285,7 +285,7 @@ $(libcurl_dll_LIBRARY): $(libcurl_a_OBJECTS) $(RESOURCE) $(libcurl_dll_DEPENDENC $(libcurl_a_OBJECTS) $(RESOURCE) $(DLL_LIBS) %.o: %.c $(PROOT)/include/curl/curlbuild.h - $(CC) $(INCLUDES) $(CFLAGS) -c $< + $(CC) $(INCLUDES) $(CFLAGS) -c $< -o $@ %.res: %.rc $(RC) $(RCFLAGS) $< -o $@ -- 1.8.4-mingw-2
------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
