diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-04-06 22:30:57 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-04-06 22:30:57 +0200 |
commit | 5e27ad1e5aabdbc0633c380c4ab2959b34a55134 (patch) | |
tree | 9da9e865e952682520d5d227d615755baf75595d /scripts/build/internals.sh | |
parent | 177a2b029c545624f09e7e704bb5a6ec7db086b6 (diff) | |
download | crosstool-ng-5e27ad1e5aabdbc0633c380c4ab2959b34a55134.tar.gz crosstool-ng-5e27ad1e5aabdbc0633c380c4ab2959b34a55134.tar.bz2 crosstool-ng-5e27ad1e5aabdbc0633c380c4ab2959b34a55134.zip |
complibs: disable building shared libs
Managing the shared version of the companion libraries
has become cumbersome.
Also, it will one day be possible to use the companion
libraries from the host distribution, and then we will
be able to easily use either shared or static libs.
As a side note, while working on the canadian-rework
series, it has become quite more complex to properly
handle shared companion libraries, as they need to be
built both for the build and gost systems. That's not
easy to handle. At all.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'scripts/build/internals.sh')
-rw-r--r-- | scripts/build/internals.sh | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/scripts/build/internals.sh b/scripts/build/internals.sh index 743f266b..d730e28a 100644 --- a/scripts/build/internals.sh +++ b/scripts/build/internals.sh @@ -87,56 +87,6 @@ do_finish() { done CT_Popd - # If using the companion libraries, we need a wrapper - # that will set LD_LIBRARY_PATH approriately - if [ "${CT_WRAPPER_NEEDED}" = "y" ]; then - CT_DoLog EXTRA "Installing toolchain wrappers" - CT_Pushd "${CT_PREFIX_DIR}/bin" - - case "$CT_SYS_OS" in - Darwin|FreeBSD) - # wrapper does not work (when using readlink -m) - CT_DoLog WARN "Forcing usage of binary tool wrapper" - CT_TOOLS_WRAPPER="exec" - ;; - esac - # Install the wrapper - case "${CT_TOOLS_WRAPPER}" in - script) - CT_DoExecLog DEBUG install \ - -m 0755 \ - "${CT_LIB_DIR}/scripts/wrapper.in" \ - ".${CT_TARGET}-wrapper" - ;; - exec) - CT_DoExecLog DEBUG "${CT_HOST}-gcc" \ - -Wall -Wextra -Werror \ - -Os \ - "${CT_LIB_DIR}/scripts/wrapper.c" \ - -o ".${CT_TARGET}-wrapper" - if [ "${CT_DEBUG_CT}" != "y" ]; then - # If not debugging crosstool-NG, strip the wrapper - CT_DoExecLog DEBUG "${CT_HOST}-strip" ".${CT_TARGET}-wrapper" - fi - ;; - esac - - # Replace every tools with the wrapper - # Do it unconditionally, even for those tools that happen to be shell - # scripts, we don't know if they would in the end spawn a binary... - # Just skip symlinks - for _t in "${CT_TARGET}-"*; do - if [ ! -L "${_t}" ]; then - CT_DoExecLog ALL mv "${_t}" ".${_t}" - CT_DoExecLog ALL ln ".${CT_TARGET}-wrapper" "${_t}" - fi - done - - # Get rid of the wrapper, we're using hardlinks - CT_DoExecLog DEBUG rm -f ".${CT_TARGET}-wrapper" - CT_Popd - fi - CT_DoLog EXTRA "Removing access to the build system tools" CT_DoExecLog DEBUG rm -rf "${CT_PREFIX_DIR}/buildtools" |