[tex-live] dvipsk/squeeze and cross-compilation

Olaf Weber olaf at infovore.xs4all.nl
Sun Jul 4 14:32:33 CEST 2004


squeeze is a little program that is compresses PS headers and is not
installed.  When cross-compiling, it needs to be treated differently.
I believe the following changes for dvipsk do the trick, even if they
are less than squeaky clean.  Change 5396 does the actual work, change
5397 checks in the updated configure script.

This as an example of how the cross-compilation support I added works
in practice.


infovore:.../texlive/development/TeX/texk/dvipsk$ p4 describe -du 5396
Change 5396 by olaf at olaf on 2004/07/04 14:27:07

        dvipsk/Makefile.in, dvipsk/configure.in: squeeze must be compiled
        for the build machine when cross-compiling.  These changes should
        do the trick, in combination with regenerating configure.

Affected files ...

... //depot/Build/source.development/TeX/texk/dvipsk/Makefile.in#14 edit
... //depot/Build/source.development/TeX/texk/dvipsk/configure.in#4 edit

Differences ...

==== //depot/Build/source.development/TeX/texk/dvipsk/Makefile.in#14 (text) ====

@@ -16,6 +16,7 @@
 ac_include ../make/paths.mk
 ac_include ../make/common.mk
 ac_include ../make/programs.mk
+ac_include ../make/cross.mk
 ac_include ../make/texi.mk
 prog_cflags = -DUNIX -DKPATHSEA -DNeedFunctionPrototypes -DSHIFTLOWCHARS

@@ -46,8 +47,10 @@
 afm2tfm: $(kpathsea) afm2tfm.o
        $(kpathsea_link) afm2tfm.o $(LOADLIBES)
 # Omit LOADLIBES since no need to dynamically link with kpathsea.
+queeze.o: squeeze.c
+       $(build_compile) -c $<
 squeeze: squeeze.o
-       $(link_command) squeeze.o $(LIBS) $(XLOADLIBES)
+       $(build_link_command) -o $@ squeeze.o

 @MAINT@$(srcdir)/writet1.c: $(srcdir)/../web2c/pdftexdir/writet1.c
 @MAINT@        cp -f $(srcdir)/../web2c/pdftexdir/writet1.c $@

==== //depot/Build/source.development/TeX/texk/dvipsk/configure.in#4 (text) ====

@@ -21,6 +21,15 @@
 AC_UNSET_CC
 AC_CHECK_SIZEOF(int)
 AC_RESET_CC
+
+# If you're cross-compiling, these macros set up the variables in
+# ../make/cross.mk: BUILDCC, BUILDCFLAGS, BUILDCCLD etc.
+KPSE_CROSS_BUILD_VAR(CC, cc)
+KPSE_CROSS_BUILD_VAR(CFLAGS, $(BUILDXCFLAGS))
+KPSE_CROSS_BUILD_VAR(CPPFLAGS, $(BUILDXCPPFLAGS))
+KPSE_CROSS_BUILD_VAR(LDFLAGS, $(BUILDXLDFLAGS))
+KPSE_CROSS_BUILD_VAR(CCLD, $(BUILDCC))
+
 AC_OUTPUT(Makefile)
 dnl Update stamp-auto, since we just remade `c-auto.h'.
 date >stamp-auto


-- 
Olaf Weber

               (This space left blank for technical reasons.)



More information about the tex-live mailing list