diff options
Diffstat (limited to 'sys-libs/libxcrypt/libxcrypt-4.4.38.ebuild')
-rw-r--r-- | sys-libs/libxcrypt/libxcrypt-4.4.38.ebuild | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sys-libs/libxcrypt/libxcrypt-4.4.38.ebuild b/sys-libs/libxcrypt/libxcrypt-4.4.38.ebuild index b4006c5176ff..566750ba0d8d 100644 --- a/sys-libs/libxcrypt/libxcrypt-4.4.38.ebuild +++ b/sys-libs/libxcrypt/libxcrypt-4.4.38.ebuild @@ -116,6 +116,14 @@ src_configure() { MYSYSROOT=${ESYSROOT} if target_is_not_host; then + # Hack to work around missing TARGET_CC support. + # See bug 949976. + if tc-is-clang; then + export CC="${CTARGET}-clang" + else + export CC="${CTARGET}-gcc" + fi + local CHOST=${CTARGET} MYPREFIX= @@ -126,12 +134,6 @@ src_configure() { multilib_env ABI=${DEFAULT_ABI} - tc-getCC >/dev/null - if [[ ${CC} != ${CHOST}-* ]]; then - unset CC - tc-getCC >/dev/null - fi - strip-unsupported-flags fi |