diff -r 02b74bd4373f -r f5dab3c43abf scripts/crosstool-NG.sh.in --- a/scripts/crosstool-NG.sh.in Wed Mar 17 00:21:57 2010 +0100 +++ b/scripts/crosstool-NG.sh.in Sun Apr 11 11:10:06 2010 +0200 @@ -150,6 +150,11 @@ CT_BUILD_DIR="${CT_WORK_DIR}/${CT_TARGET}/build" CT_STATE_DIR="${CT_WORK_DIR}/${CT_TARGET}/state" CT_CONFIG_DIR="${CT_BUILD_DIR}/configs" +if [ "${CT_COMPLIBS_SHARED}" = "y" ]; then + CT_COMPLIBS_DIR="${CT_PREFIX_DIR}" +else + CT_COMPLIBS_DIR="${CT_BUILD_DIR}/static" +fi # Note: we'll always install the core compiler in its own directory, so as to # not mix the two builds: core and final.