Hi Steve, 2013/02/16 Sat 2:12:54 UTC+9 Steve Hall wrote:
> > 1. Install mingw-gcc-g++ package. > > i686-pc-mingw32-gcc (4.5.2) can be used. > > This solved my build error, but now I have a dependency problem: > > The program can't start because libstdc++-6.dll is missing from your > computer. Try reinstalling the program to fix this problem. > > I'm trying to build Vim binaries without library dependencies. Is it > going to be possible with Cygwin's mingw-gcc-g++? Not sure why this > was changed. Do you enable OLE? Sorry, I didn't care about that. Please try attached patch with an option STATIC_STDCPLUS=yes. $ make -f Make_cyg.mak STATIC_STDCPLUS=yes This option is the same as Make_ming.mak. > > 2. Specify the old version of gcc explicitly. > > E.g. > > $ make -f Make_cyg.mak CC=gcc-3 > > I wonder how long this will be supported. Is it, too, going to break > in the near future? I'm not sure, but I think it's better to use the new one. 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/groups/opt_out.
# HG changeset patch # Parent c6107b4575a4f00f6f896b9335ae6c406af61453 diff --git a/src/Make_cyg.mak b/src/Make_cyg.mak --- a/src/Make_cyg.mak +++ b/src/Make_cyg.mak @@ -106,6 +106,13 @@ OPTIMIZE = MAXSPEED endif + +# Link against the shared version of libstdc++ by default. Set +# STATIC_STDCPLUS to "yes" to link against static version instead. +ifndef STATIC_STDCPLUS +STATIC_STDCPLUS=no +endif + ### See feature.h for a list of optionals. ### Any other defines can be included here. @@ -478,7 +485,12 @@ ifeq (yes, $(OLE)) DEFINES += -DFEAT_OLE EXTRA_OBJS += $(OUTDIR)/if_ole.o -EXTRA_LIBS += -loleaut32 -lstdc++ +EXTRA_LIBS += -loleaut32 +ifeq (yes, $(STATIC_STDCPLUS)) +LIB += -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic +else +LIB += -lstdc++ +endif endif ##############################
