[tex-live] xdvik squeeze and cross-compilation

Olaf Weber olaf at infovore.xs4all.nl
Sun Jul 4 21:27:14 CEST 2004


Like dvipsk:

$ p4 describe -du 5418
Change 5418 by olaf at olaf on 2004/07/04 21:24:41

        When cross-compiling, compile squeeze for the build-host.

Affected files ...

... //depot/Build/source.development/TeX/texk/xdvik/Makefile.in#26 edit
... //depot/Build/source.development/TeX/texk/xdvik/configure.in#22 edit

Differences ...

==== //depot/Build/source.development/TeX/texk/xdvik/Makefile.in#26 (text) ====

@@ -7,6 +7,7 @@
 ac_include ../make/paths.mk
 ac_include ../make/common.mk
 ac_include ../make/programs.mk
+ac_include ../make/cross.mk

 all_subdirs = gui

@@ -103,8 +104,10 @@
 @final_exec_name@: $(kpathsea) $(objects) $(LIBT1DEP) $(LIBGUIDEP)
        $(kpathsea_link) $(objects) $(LIBGUI) $(x_link) $(LOADLIBES)

+squeese.o: squeeze.c
+       $(build_compile) -c $<
 squeeze: squeeze.o
-       $(link_command) squeeze.o $(LIBS) $(XLOADLIBES)
+       $(build_link_command) squeeze.o

 psheader.c: psheader.txt squeeze
        ./squeeze $(srcdir)/psheader.txt $@

==== //depot/Build/source.development/TeX/texk/xdvik/configure.in#22 (text) ====

@@ -269,6 +269,15 @@
 AC_CHECK_LIB(m, main)
 AC_C_CONST()

+# If you're cross-compiling, these macros set up the variables in
+# ../make/cross.mk: BUILDCC, BUILDCFLAGS, BUILDCCLD etc.  These are
+# near the end so people have some chance of seeing them.
+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 gui/Makefile xdvi-sh)

 dnl update `stamp-auto' since we just remade `c-auto.h'

-- 
Olaf Weber

               (This space left blank for technical reasons.)



More information about the tex-live mailing list