diff --git a/dev-vcs/git/git-2.29.2.ebuild b/dev-vcs/git/git-2.29.2.ebuild index 6e5c5a74a12c3..ca7a5942fda8b 100644 --- a/dev-vcs/git/git-2.29.2.ebuild +++ b/dev-vcs/git/git-2.29.2.ebuild @@ -341,7 +341,7 @@ src_compile() { || die "emake gitweb (cgi) failed" fi - if [[ ${CHOST} == *-darwin* ]]; then + if [[ ${CHOST} == *-darwin* && ! tc-is-gcc ]]; then pushd contrib/credential/osxkeychain &>/dev/null || die git_emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" \ || die "emake credential-osxkeychain" @@ -391,7 +391,7 @@ src_compile() { src_install() { git_emake install || die "make install failed" - if [[ ${CHOST} == *-darwin* ]]; then + if [[ ${CHOST} == *-darwin* && ! tc-is-gcc ]]; then dobin contrib/credential/osxkeychain/git-credential-osxkeychain fi diff --git a/dev-vcs/git/git-9999-r3.ebuild b/dev-vcs/git/git-9999-r3.ebuild index 6e5c5a74a12c3..ca7a5942fda8b 100644 --- a/dev-vcs/git/git-9999-r3.ebuild +++ b/dev-vcs/git/git-9999-r3.ebuild @@ -341,7 +341,7 @@ src_compile() { || die "emake gitweb (cgi) failed" fi - if [[ ${CHOST} == *-darwin* ]]; then + if [[ ${CHOST} == *-darwin* && ! tc-is-gcc ]]; then pushd contrib/credential/osxkeychain &>/dev/null || die git_emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" \ || die "emake credential-osxkeychain" @@ -391,7 +391,7 @@ src_compile() { src_install() { git_emake install || die "make install failed" - if [[ ${CHOST} == *-darwin* ]]; then + if [[ ${CHOST} == *-darwin* && ! tc-is-gcc ]]; then dobin contrib/credential/osxkeychain/git-credential-osxkeychain fi