]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.821 v7.3.821
authorBram Moolenaar <Bram@vim.org>
Sat, 16 Feb 2013 17:16:15 +0000 (18:16 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 16 Feb 2013 17:16:15 +0000 (18:16 +0100)
Problem:    Build with OLE and Cygwin is broken. (Steve Hall)
Solution:   Select static or shared stdc library. (Ken Takta)

src/Make_cyg.mak
src/version.c

index 0930161d47c6688838eaa7453741fe58d0c272d1..7ba2f9dbf63ee9bd157e3151e44f3b9ec0e04d74 100644 (file)
@@ -106,6 +106,13 @@ ifndef OPTIMIZE
 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 @@ endif
 ifeq (yes, $(OLE))
 DEFINES += -DFEAT_OLE
 EXTRA_OBJS += $(OUTDIR)/if_ole.o
-EXTRA_LIBS += -loleaut32 -lstdc++
+EXTRA_LIBS += -loleaut32
+ifeq (yes, $(STATIC_STDCPLUS))
+EXTRA_LIBS += -Wl,-Bstatic -lstdc++ -lsupc++ -Wl,-Bdynamic
+else
+EXTRA_LIBS += -lstdc++
+endif
 endif
 
 ##############################
index 5948b9062c319013afd70b26ed818271ce658cdd..c8381a1ae463be1b1b73dd25b45bdb9b6b4ad2ee 100644 (file)
@@ -725,6 +725,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    821,
 /**/
     820,
 /**/