[crosstool-ng] [patch] Make ${CT_PREFIX_DIR}/bin/${CT_TARGET}-cc link relative rather than absolute
Nye Liu
nyet@mrv.com
Mon Oct 27 23:03:00 GMT 2008
The current cc installation process makes a
${CT_PREFIX_DIR}/bin/${CT_TARGET}-cc softlink which links to gcc using
an absoulte path. For those of us wanting to relocate the built
toolchain elsewhere when this is finished (hopefully fix-embedded-paths
is no longer needed :), this is not a good idea.
This patch causes the installation process to make
${CT_PREFIX_DIR}/bin/${CT_TARGET}-cc a relative link to
${CT_TARGET}-gcc in its current directory (${CT_PREFIX_DIR}/bin).
Index: scripts/build/cc/gcc.sh
===================================================================
--- scripts/build/cc/gcc.sh (revision 1158)
+++ scripts/build/cc/gcc.sh (working copy)
@@ -297,7 +297,7 @@
# Create a symlink ${CT_TARGET}-cc to ${CT_TARGET}-gcc to always be able
# to call the C compiler with the same, somewhat canonical name.
- ln -sv "${CT_PREFIX_DIR}/bin/${CT_TARGET}"-{g,}cc 2>&1 |CT_DoLog ALL
+ ln -sv "${CT_TARGET}"-gcc "${CT_PREFIX_DIR}/bin/${CT_TARGET}"-cc 2>&1 |CT_DoLog ALL
CT_EndStep
}
--
Nye Liu
nliu@mrv.com
(818) 772-6235x248
(818) 772-0576 fax
"Who would be stupid enough to quote a fictitious character?"
-- Don Quixote
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list