summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2014-06-21 08:14:18 +0000
committerFabian Groffen <grobian@gentoo.org>2014-06-21 08:14:18 +0000
commitf427ad348d11d4d7b64cef50e3329ca99bc4cf6c (patch)
treeba43394fe5b8662bc3c166e454bc3f9f65c98d00 /eclass
parentdrop py2.6 add py3.4, update test phase (diff)
downloadhistorical-f427ad348d11d4d7b64cef50e3329ca99bc4cf6c.tar.gz
historical-f427ad348d11d4d7b64cef50e3329ca99bc4cf6c.tar.bz2
historical-f427ad348d11d4d7b64cef50e3329ca99bc4cf6c.zip
unbreak distutils builds on Darwin
Diffstat (limited to 'eclass')
-rw-r--r--eclass/distutils-r1.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 700dc717c715..11d29a4d1b35 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.97 2014/06/19 12:54:47 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.98 2014/06/21 08:14:18 grobian Exp $
# @ECLASS: distutils-r1
# @MAINTAINER:
@@ -600,8 +600,8 @@ distutils-r1_run_phase() {
local -x AR=${AR} CC=${CC} CPP=${CPP} CXX=${CXX}
tc-export AR CC CPP CXX
- # XXX: portability for -shared?
- local -x LDSHARED="${CC} -shared" LDCXXSHARED="${CXX} -shared"
+ # XXX: portability for -shared? -- YES!
+ [[ ${CHOST} == *-darwin* ]] || local -x LDSHARED="${CC} -shared" LDCXXSHARED="${CXX} -shared"
"${@}"