bash: Compiling For Multiple Architectures
1
1 10.3 Compiling For Multiple Architectures
1 =========================================
1
1 You can compile Bash for more than one kind of computer at the same
1 time, by placing the object files for each architecture in their own
1 directory. To do this, you must use a version of 'make' that supports
1 the 'VPATH' variable, such as GNU 'make'. 'cd' to the directory where
1 you want the object files and executables to go and run the 'configure'
1 script from the source directory. You may need to supply the
1 '--srcdir=PATH' argument to tell 'configure' where the source files are.
1 'configure' automatically checks for the source code in the directory
1 that 'configure' is in and in '..'.
1
1 If you have to use a 'make' that does not supports the 'VPATH'
1 variable, you can compile Bash for one architecture at a time in the
1 source code directory. After you have installed Bash for one
1 architecture, use 'make distclean' before reconfiguring for another
1 architecture.
1
1 Alternatively, if your system supports symbolic links, you can use
1 the 'support/mkclone' script to create a build tree which has symbolic
1 links back to each file in the source directory. Here's an example that
1 creates a build directory in the current directory from a source
1 directory '/usr/gnu/src/bash-2.0':
1
1 bash /usr/gnu/src/bash-2.0/support/mkclone -s /usr/gnu/src/bash-2.0 .
1
1 The 'mkclone' script requires Bash, so you must have already built Bash
1 for at least one architecture before you can create build directories
1 for other architectures.
1