Changes

Jump to navigation Jump to search
m
how to cross-compile TeX Live on Mac OS X
<code>trunk</code>
=== TeX Live 2009 2012 ===
* http://www.tug.org/texlive/svn/
== Cross-compiling for PPC on Intel Mac OS X ==
In order to cross-compile for PPC on a Intel Mac, you need to give the compiler and the linker the following additional switches:
-arch ppc
 
Pretty damn simple, isn't?
So all you have to do is set <code>CFLAGS</code> and <code>LDFLAGS</code> before you run <code>configure</code> (as well as <code>CXXFLAGS</code>, if applicable). Of course it may be that some Makefiles don't honor these variables and override them with something of their own, and this is the major inconvience you will have to deal with (this is actually what the Makefile for lua does; here you would have to set something like <code>MYCFLAGS</code> or <code>XCFLAGS</code> in addition).
== Compiling TeX Live binaries ==
(Written by Richard Koch)To compile in 64 bits, three flags should be set-bit binaries on 10.6 or later:  CFLAGS=" ./Build --disable-xdvipdfmx --disable-arch x86_64 xetex -mmacosx-versiondisable-minxdv2pdfTo select the latest compiler on Lion: CC=clang OBJC=clang CXX=clang++ ./Build <options>If we want to compile for 10.5"; 6 on 10.7 we additionally need: export CFLAGSMACOSX_DEPLOYMENT_TARGET=10.6 CXXFLAGS="-arch x86_64 # or add -mmacosx-version-min=10.5"6 to CFLAGS # most of the time optional; usually not needed, but one never knows export CXXFLAGSMYCFLAGS='-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk' OBJCFLAGSexport CC="llvm-arch x86_64 gcc-mmacosx4.2; export CFLAGS=$MYCFLAGS export OBJC=llvm-versiongcc-min=104.5"2; export OBJCFLAGS=$MYCFLAGS (though probably none of them is really needed when compiling on 64 export CXX=llvm-g++-bit software and 4.2; export MACOSX_DEPLOYMENT_TARGET can be set instead)CXXFLAGS=$MYCFLAGS To use llvm, also set ./Build <options>
To compile ppc and i386 binaries for Tiger on 10.6: export ARCH=i386 CCexport MACOSX_DEPLOYMENT_TARGET=10.4 export MYCFLAGS='-arch $ARCH -isysroot /Developer/usrSDKs/bin/llvmMacOSX10.4u.sdk' export LDFLAGS='-arch $ARCH' export CC=gcc-4.0; export CFLAGS=$MYCFLAGS export OBJC=gcc-4.20; export CCOBJCFLAGS=$MYCFLAGS export CXX=g++-4.0; export CXXFLAGS=$MYCFLAGS
But then to build, I disable three thingsOr alternatively: export MACOSX_DEPLOYMENT_TARGET=10.4 export MYCFLAGS='-isysroot /Developer/SDKs/MacOSX10.4u.sdk' export CC=i686-apple-darwin10-gcc-4.0.1; export CFLAGS=$MYCFLAGS export OBJC=i686-apple-darwin10-gcc-4.0.1; export OBJCFLAGS=$MYCFLAGS export CXX=i686-apple-darwin10-g++-4.0.1; export CXXFLAGS=$MYCFLAGS
export MACOSX_DEPLOYMENT_TARGET=10.4 export MYCFLAGS='-isysroot /Developer/SDKs/Build MacOSX10.4u.sdk' export CC=powerpc-apple-darwin10-gcc-disable4.0.1; export CFLAGS=$MYCFLAGS export OBJC=powerpc-pdfopen apple-darwin10-disablegcc-xetex 4.0.1; export OBJCFLAGS=$MYCFLAGS export CXX=powerpc-apple-disabledarwin10-xdv2pdfg++-4.0.1; export CXXFLAGS=$MYCFLAGS
= Non-Polish Fonts =

Navigation menu