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 / 6.2.319 < prev    next >
Encoding:
Internet Message Format  |  2004-03-05  |  3.4 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.2.319 (extra)
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.2.319 (extra)
  11. Problem:    Building gvimext.dll with Mingw doesn't work properly.
  12. Solution:   Use gcc instead of dllwrap.  Use long option names. (Alejandro
  13.         Lopez-Valencia)
  14. Files:        src/GvimExt/Make_ming.mak
  15.  
  16.  
  17. *** ../vim-6.2.318/src/GvimExt/Make_ming.mak    Sun May  4 11:49:25 2003
  18. --- src/GvimExt/Make_ming.mak    Sun Feb 29 17:29:25 2004
  19. ***************
  20. *** 2,44 ****
  21.   # Generates gvimext.dll with gcc.
  22.   # Can be used for Cygwin and MingW (MingW ignores -mno-cygwin)
  23.   #
  24. ! CPP  := g++.exe
  25. ! CC   := gcc.exe
  26.   CXXFLAGS := -O2 -mno-cygwin
  27.   LIBS :=  -luuid
  28.   WINDRES := windres.exe
  29. - DLLWRAP = dllwrap.exe
  30.   RES  := gvimext.res
  31.   DEFFILE = gvimext_ming.def
  32. ! STATICLIB = gvimext.a
  33. ! EXPLIB = gvimext.exp
  34. ! OBJ  := gvimext.o $(RES)
  35.   
  36. - INCS :=
  37.   DLL  := gvimext.dll
  38.   
  39.   .PHONY: all all-before all-after clean clean-custom
  40.   
  41.   all: all-before $(DLL) all-after
  42.   
  43.   
  44. ! clean: clean-custom
  45. !     ${RM}  $(OBJ) $(DLL) ${RES} ${EXPLIB} $(STATICLIB)
  46.   
  47. ! $(DLL): $(OBJ)
  48. !     $(DLLWRAP) \
  49. !         --def $(DEFFILE) \
  50. !         --output-exp ${EXPLIB} \
  51. !         --image-base 0x1C000000 \
  52. !         --driver-name c++ \
  53. !         --implib $(STATICLIB) \
  54. !         $(OBJ) $(LIBS) \
  55. !         --target=i386-mingw32 -mno-cygwin \
  56. !         -o $(DLL) -s
  57.   
  58. ! gvimext.o: gvimext.cpp
  59. !     $(CPP) -c $? -o $@ $(CXXFLAGS) -DFEAT_GETTEXT
  60.   
  61. - ${RES}: gvimext_ming.rc
  62. -     $(WINDRES) $? -I rc -o $@ -O coff -DMING
  63. --- 2,41 ----
  64.   # Generates gvimext.dll with gcc.
  65.   # Can be used for Cygwin and MingW (MingW ignores -mno-cygwin)
  66.   #
  67. ! # Originally, the DLL base address was fixed: -Wl,--image-base=0x1C000000 
  68. ! # Now it is allocated dymanically by the linker by evaluating all DLLs 
  69. ! # already loaded in memory. The binary image contains as well information
  70. ! # for automatic pseudo-rebasing, if needed by the system. ALV 2004-02-29 
  71. ! CXX := g++
  72.   CXXFLAGS := -O2 -mno-cygwin
  73.   LIBS :=  -luuid
  74.   WINDRES := windres.exe
  75.   RES  := gvimext.res
  76.   DEFFILE = gvimext_ming.def
  77. ! OBJ  := gvimext.o 
  78.   
  79.   DLL  := gvimext.dll
  80.   
  81.   .PHONY: all all-before all-after clean clean-custom
  82.   
  83.   all: all-before $(DLL) all-after
  84.   
  85. + $(DLL): $(OBJ) $(RES) $(DEFFILE)
  86. +     $(CXX) -shared $(CXXFLAGS) -s -o $@ \ 
  87. +         -Wl,--enable-auto-image-base \
  88. +         -Wl,--enable-auto-import \
  89. +         -Wl,--whole-archive \
  90. +              $^ \ 
  91. +         -Wl,--no-whole-archive \
  92. +             $(LIBS)
  93.   
  94. ! gvimext.o: gvimext.cpp
  95. !     $(CXX) $(CXXFLAGS) -DFEAT_GETTEXT -c $? -o $@ 
  96.   
  97. ! $(RES): gvimext_ming.rc
  98. !     $(WINDRES) --input-format=rc --output-format=coff -DMING $? -o $@
  99.   
  100. ! clean: clean-custom
  101. !     ${RM}  $(OBJ) $(RES) $(DLL)
  102.   
  103. *** ../vim-6.2.318/src/version.c    Fri Mar  5 15:21:09 2004
  104. --- src/version.c    Sat Mar  6 21:03:41 2004
  105. ***************
  106. *** 639,640 ****
  107. --- 639,642 ----
  108.   {   /* Add new patch number below this line */
  109. + /**/
  110. +     319,
  111.   /**/
  112.  
  113. -- 
  114. Dogs must have a permit signed by the mayor in order to congregate in groups
  115. of three or more on private property.
  116.         [real standing law in Oklahoma, United States of America]
  117.  
  118.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  119. ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  120. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  121.  \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
  122.