This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 1 of 6] config: add option to build statically linked toolchain


# HG changeset patch
# User Bryan Hundven <bryanhundven@gmail.com>
# Date 1287436323 -7200
# Node ID 9a8dc460d65a80a150957a6a66841c1547636e45
# Parent  2b5f5173daa0544deb94c1d8fa519d1431f43b78
config: add option to build statically linked toolchain

Add a config option to statically build the host tools.
Impacted tools can use that option to decide wether to build
statically or shared.

For now, no tool uses it, but they'll be added one at a time
in the next commits.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

diff --git a/config/toolchain.in b/config/toolchain.in
--- a/config/toolchain.in
+++ b/config/toolchain.in
@@ -28,6 +28,23 @@
       In fact, the sysroot path is constructed as:
         ${CT_PREFIX_DIR}/${CT_TARGET}/${CT_SYSROOT_DIR_PREFIX}/sys-root
 
+config STATIC_TOOLCHAIN
+    bool
+    prompt "Build Static Toolchain (EXPERIMENTAL)"
+    depends on EXPERIMENTAL
+    default n
+    help
+      Build static host binaries.
+      
+      If you wish to move the toolchain to another host, and you are not
+      confident that this host has the required versions of system libs, then
+      you can say 'Y' here, and all the host tools will be linked staticaly.
+      
+      The default is 'N', to build dynamicaly-linked host binaries.
+      
+      NOTE: this has no connection to whether the target libraries will be
+      dynamic or static. This only applies to the tools themselves.
+
 comment "Tuple completion and aliasing"
 
 config TARGET_VENDOR

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]