Hi,

2018/12/17 Mon 9:06:05 UTC+9 [email protected] wrote:
> fresh build on latest git: 8.1.0606
> CC = x86_64-w64-mingw32-gcc vers. 8.2.0
> 
> 
> make -f Make_ming.mak STATIC_STDCPLUS=yes STATIC_WINPTHREAD=yes builds fine, 
> but still produces an executable with a dependency on libwinpthread-1.dll.
> This shows up on the version information: 
>    -Wl,-Bstatic -lwinpthread 
> But an objdump of gvim.exe reveals a dependency on libwinpthread-1.dll

Reproduced on x86_64 gcc 8.2.1, but not reproduced on i686 gcc 7.3.0.
So, this might be depend on the gcc version or the architecture.
It seems that the following patch fixes the problem:

--- a/src/Make_cyg_ming.mak
+++ b/src/Make_cyg_ming.mak
@@ -936,7 +936,8 @@ endif
 ifeq (yes, $(USE_STDCPLUS))
 LINK = $(CXX)
 ifeq (yes, $(STATIC_STDCPLUS))
-LIB += -static-libstdc++ -static-libgcc
+#LIB += -static-libstdc++ -static-libgcc
+LIB += -Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic
 endif
 else
 LINK = $(CC)


(This partly reverts the patch 8.1.0490.)
I'm not sure why this causes the difference, though...

Regards,
Ken Takata

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui