home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.3 / 7.3.093 < prev    next >
Encoding:
Internet Message Format  |  2012-11-20  |  5.4 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.093
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.3.093
  11. Problem:    New DLL dependencies in MingW with gcc 4.5.0.
  12. Solution:   Add STATIC_STDCPLUS, LDFLAGS and split up WINDRES. (Guopeng Wen)
  13. Files:      src/GvimExt/Make_ming.mak, src/Make_ming.mak
  14.  
  15.  
  16. *** ../vim-7.3.092/src/GvimExt/Make_ming.mak    2010-09-29 18:42:25.000000000 +0200
  17. --- src/GvimExt/Make_ming.mak    2010-12-30 14:42:51.000000000 +0100
  18. ***************
  19. *** 17,22 ****
  20. --- 17,33 ----
  21.   # check also the executables
  22.   MINGWOLD = no
  23.   
  24. + # Link against the shared versions of libgcc/libstdc++ by default.  Set
  25. + # STATIC_STDCPLUS to "yes" to link against static versions instead.
  26. + STATIC_STDCPLUS=no
  27. + #STATIC_STDCPLUS=yes
  28. + # Note: -static-libstdc++ is not available until gcc 4.5.x.
  29. + LDFLAGS += -shared
  30. + ifeq (yes, $(STATIC_STDCPLUS))
  31. + LDFLAGS += -static-libgcc -static-libstdc++
  32. + endif
  33.   ifeq ($(CROSS),yes)
  34.   DEL = rm
  35.   ifeq ($(MINGWOLD),yes)
  36. ***************
  37. *** 33,39 ****
  38.   endif
  39.   endif
  40.   CXX := $(CROSS_COMPILE)g++
  41. ! WINDRES := $(CROSS_COMPILE)windres --preprocessor="$(CXX) -E -xc" -DRC_INVOKED
  42.   LIBS :=  -luuid
  43.   RES  := gvimext.res
  44.   DEFFILE = gvimext_ming.def
  45. --- 44,52 ----
  46.   endif
  47.   endif
  48.   CXX := $(CROSS_COMPILE)g++
  49. ! WINDRES := $(CROSS_COMPILE)windres
  50. ! WINDRES_CXX = $(CXX)
  51. ! WINDRES_FLAGS = --preprocessor="$(WINDRES_CXX) -E -xc" -DRC_INVOKED
  52.   LIBS :=  -luuid
  53.   RES  := gvimext.res
  54.   DEFFILE = gvimext_ming.def
  55. ***************
  56. *** 46,52 ****
  57.   all: all-before $(DLL) all-after
  58.   
  59.   $(DLL): $(OBJ) $(RES) $(DEFFILE)
  60. !     $(CXX) -shared $(CXXFLAGS) -s -o $@ \
  61.           -Wl,--enable-auto-image-base \
  62.           -Wl,--enable-auto-import \
  63.           -Wl,--whole-archive \
  64. --- 59,65 ----
  65.   all: all-before $(DLL) all-after
  66.   
  67.   $(DLL): $(OBJ) $(RES) $(DEFFILE)
  68. !     $(CXX) $(LDFLAGS) $(CXXFLAGS) -s -o $@ \
  69.           -Wl,--enable-auto-image-base \
  70.           -Wl,--enable-auto-import \
  71.           -Wl,--whole-archive \
  72. ***************
  73. *** 58,64 ****
  74.       $(CXX) $(CXXFLAGS) -DFEAT_GETTEXT -c $? -o $@
  75.   
  76.   $(RES): gvimext_ming.rc
  77. !     $(WINDRES) --input-format=rc --output-format=coff -DMING $? -o $@
  78.   
  79.   clean: clean-custom
  80.       -$(DEL)  $(OBJ) $(RES) $(DLL)
  81. --- 71,77 ----
  82.       $(CXX) $(CXXFLAGS) -DFEAT_GETTEXT -c $? -o $@
  83.   
  84.   $(RES): gvimext_ming.rc
  85. !     $(WINDRES) $(WINDRES_FLAGS) --input-format=rc --output-format=coff -DMING $? -o $@
  86.   
  87.   clean: clean-custom
  88.       -$(DEL)  $(OBJ) $(RES) $(DLL)
  89. *** ../vim-7.3.092/src/Make_ming.mak    2010-11-03 21:59:23.000000000 +0100
  90. --- src/Make_ming.mak    2010-12-30 14:42:51.000000000 +0100
  91. ***************
  92. *** 56,61 ****
  93. --- 56,67 ----
  94.   NETBEANS=$(GUI)
  95.   
  96.   
  97. + # Link against the shared version of libstdc++ by default.  Set
  98. + # STATIC_STDCPLUS to "yes" to link against static version instead.
  99. + ifndef STATIC_STDCPLUS
  100. + STATIC_STDCPLUS=no
  101. + endif
  102.   # If the user doesn't want gettext, undefine it.
  103.   ifeq (no, $(GETTEXT))
  104.   GETTEXT=
  105. ***************
  106. *** 309,320 ****
  107.   endif
  108.   endif
  109.   CC := $(CROSS_COMPILE)gcc
  110. ! WINDRES := $(CROSS_COMPILE)windres --preprocessor="$(CC) -E -xc" -DRC_INVOKED
  111.   
  112.   #>>>>> end of choices
  113.   ###########################################################################
  114.   
  115.   CFLAGS = -Iproto $(DEFINES) -pipe -w -march=$(ARCH) -Wall
  116.   
  117.   ifdef GETTEXT
  118.   DEFINES += -DHAVE_GETTEXT -DHAVE_LOCALE_H
  119. --- 315,328 ----
  120.   endif
  121.   endif
  122.   CC := $(CROSS_COMPILE)gcc
  123. ! WINDRES := $(CROSS_COMPILE)windres
  124. ! WINDRES_CC = $(CC)
  125.   
  126.   #>>>>> end of choices
  127.   ###########################################################################
  128.   
  129.   CFLAGS = -Iproto $(DEFINES) -pipe -w -march=$(ARCH) -Wall
  130. + WINDRES_FLAGS = --preprocessor="$(WINDRES_CC) -E -xc" -DRC_INVOKED
  131.   
  132.   ifdef GETTEXT
  133.   DEFINES += -DHAVE_GETTEXT -DHAVE_LOCALE_H
  134. ***************
  135. *** 577,584 ****
  136.   endif
  137.   
  138.   ifeq (yes, $(OLE))
  139. ! LIB += -loleaut32 -lstdc++
  140.   OBJ += $(OUTDIR)/if_ole.o
  141.   endif
  142.   
  143.   ifeq (yes, $(MBYTE))
  144. --- 585,597 ----
  145.   endif
  146.   
  147.   ifeq (yes, $(OLE))
  148. ! LIB += -loleaut32
  149.   OBJ += $(OUTDIR)/if_ole.o
  150. + ifeq (yes, $(STATIC_STDCPLUS))
  151. + LIB += -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
  152. + else
  153. + LIB += -lstdc++
  154. + endif
  155.   endif
  156.   
  157.   ifeq (yes, $(MBYTE))
  158. ***************
  159. *** 656,665 ****
  160.       $(CC) -c $(CFLAGS) $< -o $@
  161.   
  162.   $(OUTDIR)/vimres.res: vim.rc version.h gui_w32_rc.h
  163. !     $(WINDRES) $(DEFINES) vim.rc $(OUTDIR)/vimres.res
  164.   
  165.   $(OUTDIR)/vimrc.o: $(OUTDIR)/vimres.res
  166. !     $(WINDRES) $(OUTDIR)/vimres.res $(OUTDIR)/vimrc.o
  167.   
  168.   $(OUTDIR):
  169.       $(MKDIR) $(OUTDIR)
  170. --- 669,678 ----
  171.       $(CC) -c $(CFLAGS) $< -o $@
  172.   
  173.   $(OUTDIR)/vimres.res: vim.rc version.h gui_w32_rc.h
  174. !     $(WINDRES) $(WINDRES_FLAGS) $(DEFINES) vim.rc $(OUTDIR)/vimres.res
  175.   
  176.   $(OUTDIR)/vimrc.o: $(OUTDIR)/vimres.res
  177. !     $(WINDRES) $(WINDRES_FLAGS) $(OUTDIR)/vimres.res $(OUTDIR)/vimrc.o
  178.   
  179.   $(OUTDIR):
  180.       $(MKDIR) $(OUTDIR)
  181. *** ../vim-7.3.092/src/version.c    2010-12-30 14:47:32.000000000 +0100
  182. --- src/version.c    2010-12-30 14:48:34.000000000 +0100
  183. ***************
  184. *** 716,717 ****
  185. --- 716,719 ----
  186.   {   /* Add new patch number below this line */
  187. + /**/
  188. +     93,
  189.   /**/
  190.  
  191. -- 
  192. Creating the world with Emacs:   M-x let-there-be-light
  193. Creating the world with Vim:     :make world
  194.  
  195.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  196. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  197. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  198.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  199.