From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/bash/compiling-for-multiple-architectures.html | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 devdocs/bash/compiling-for-multiple-architectures.html (limited to 'devdocs/bash/compiling-for-multiple-architectures.html') diff --git a/devdocs/bash/compiling-for-multiple-architectures.html b/devdocs/bash/compiling-for-multiple-architectures.html new file mode 100644 index 00000000..e3518905 --- /dev/null +++ b/devdocs/bash/compiling-for-multiple-architectures.html @@ -0,0 +1,8 @@ +

Compiling For Multiple Architectures

You can compile Bash for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you must use a version of make that supports the VPATH variable, such as GNU make. cd to the directory where you want the object files and executables to go and run the configure script from the source directory (see Basic Installation). You may need to supply the --srcdir=PATH argument to tell configure where the source files are. configure automatically checks for the source code in the directory that configure is in and in ‘..’.

If you have to use a make that does not support the VPATH variable, you can compile Bash for one architecture at a time in the source code directory. After you have installed Bash for one architecture, use ‘make distclean’ before reconfiguring for another architecture.

Alternatively, if your system supports symbolic links, you can use the support/mkclone script to create a build tree which has symbolic links back to each file in the source directory. Here’s an example that creates a build directory in the current directory from a source directory /usr/gnu/src/bash-2.0:

bash /usr/gnu/src/bash-2.0/support/mkclone -s /usr/gnu/src/bash-2.0 .
+
+

The mkclone script requires Bash, so you must have already built Bash for at least one architecture before you can create build directories for other architectures.

+

+ Copyright © 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
Licensed under the GNU Free Documentation License.
+ https://www.gnu.org/software/bash/manual/html_node/Compiling-For-Multiple-Architectures.html +

+
-- cgit v1.2.3