diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-04-11 09:10:06 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-04-11 09:10:06 (GMT) |
commit | a01284b0e2c0d624195b4251c50a5b7a6863a0f1 (patch) | |
tree | 17face67da78b4545ddf480f42958c79c2a35264 /scripts/crosstool-NG.sh.in | |
parent | 5b27e8de528dbfaa1e3ddd926af26b906db85c3d (diff) |
complibs: don't install in toolchain dir when built as static
Diffstat (limited to 'scripts/crosstool-NG.sh.in')
-rw-r--r-- | scripts/crosstool-NG.sh.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in index 471e3e0..020d8d8 100644 --- a/scripts/crosstool-NG.sh.in +++ b/scripts/crosstool-NG.sh.in @@ -150,6 +150,11 @@ CT_SRC_DIR="${CT_WORK_DIR}/src" 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. |