[tlbuild] Patches for building TeXlive with CYGWIN-gcc-3.4.4

Angelo Graziosi angelo.graziosi at alice.it
Tue Sep 30 02:02:38 CEST 2008


Rodrigo Medina wrote:

> Patch #6
>    Modify .../texk/web2c/configure.
>    a) after the line
>    flags_try2='-nodefaultlibs -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic -lm -lgcc
> -lc -lgcc'
>    insert the line
>    flags_try3='-nodefaultlibs -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic -lm -lgcc
> -lcygwin -lkernel32'
> 
>    b) substitute the line 
>    for flags in "$flags_try1" "$flags_try2"; do
>    by the line
>    for flags in "$flags_try1" "$flags_try2" "$flags_try3"; do


It seems that applying patch #6 is equivalent to stop at patch #5, i.e.
we can avoid to change .../texk/web2c/configure.

In any case, the result is that xetex.exe depend on a few Cygwin dlls:

$ cygcheck texlive-20080930-source/inst/bin/i386-cygwin/xetex.exe
texlive-20080930-source/inst/bin/i386-cygwin/xetex.exe
    C:\cygwin\bin\cygwin1.dll
      C:\WINDOWS\system32\ADVAPI32.DLL
        C:\WINDOWS\system32\KERNEL32.dll
          C:\WINDOWS\system32\ntdll.dll
        C:\WINDOWS\system32\RPCRT4.dll
          C:\WINDOWS\system32\Secur32.dll
    C:\cygwin\bin\cygfontconfig-1.dll
      C:\cygwin\bin\cygexpat-0.dll
      C:\cygwin\bin\cygfreetype-6.dll
        C:\cygwin\bin\cygz.dll

Instead applying this:

=============================================
diff -Naur texlive-20080816-source.orig/texk/web2c/xetexdir/xetex.mk
texlive-20080816-source/texk/web2c/xetexdir/xetex.mk
--- texlive-20080816-source.orig/texk/web2c/xetexdir/xetex.mk
2008-06-03 17:24:50.000000000 +0200
+++ texlive-20080816-source/texk/web2c/xetexdir/xetex.mk
2008-09-11 13:17:58.218750000 +0200
@@ -33,7 +33,9 @@

   @XETEX_GENERIC@ XETEX_DEFINES = -DXETEX_OTHER

- at XETEX_GENERIC@ EXTRALIBS = @LDLIBXPDF@ @LDLIBPNG@ @LDFONTCONFIG@
+LOAD_FN_CFG = /usr/lib/libfontconfig.a -lz /usr/lib/libexpat.a
lib/lib.a $(LDFREETYPE2)
+
+ at XETEX_GENERIC@ EXTRALIBS = @LDLIBXPDF@ @LDLIBPNG@ $(LOAD_FN_CFG)

   @XETEX_GENERIC@ EXTRADEPS = @LIBXPDFDEP@ @LIBPNGDEP@

@@ -86,7 +88,7 @@
   ICUDIR=../../libs/icu-xetex
   ICUSRCDIR=$(srcdir)/$(ICUDIR)

-ICUCFLAGS = @ICUCPPFLAGS@ -DLE_USE_CMEMORY
+ICUCFLAGS = @ICUCPPFLAGS@ -DU_STATIC_IMPLEMENTATION

   ZLIBCPPFLAGS = @ZLIBCPPFLAGS@
   LDZLIB = @LDZLIB@
==========================================

makes xetex.exe depend only on cygwin1.dll:

$ cygcheck /usr/local/texlive/2008/bin/i386-cygwin/xetex.exe
C:\cygwin\usr/local/texlive/2008/bin/i386-cygwin/xetex.exe
    C:\cygwin\bin\cygwin1.dll
      C:\WINDOWS\system32\ADVAPI32.DLL
        C:\WINDOWS\system32\KERNEL32.dll
          C:\WINDOWS\system32\ntdll.dll
        C:\WINDOWS\system32\RPCRT4.dll
          C:\WINDOWS\system32\Secur32.dll


Cheers,
    Angelo.


More information about the tlbuild mailing list