diff options
Diffstat (limited to 'sys-devel/binutils-apple/binutils-apple-7.0.ebuild')
-rw-r--r-- | sys-devel/binutils-apple/binutils-apple-7.0.ebuild | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/sys-devel/binutils-apple/binutils-apple-7.0.ebuild b/sys-devel/binutils-apple/binutils-apple-7.0.ebuild index 0227bb294f25..91916054da8a 100644 --- a/sys-devel/binutils-apple/binutils-apple-7.0.ebuild +++ b/sys-devel/binutils-apple/binutils-apple-7.0.ebuild @@ -44,27 +44,12 @@ RDEPEND="sys-devel/binutils-config DEPEND="${RDEPEND} test? ( >=dev-lang/perl-5.8.8 )" -export CTARGET=${CTARGET:-${CHOST}} -if [[ ${CTARGET} == ${CHOST} ]] ; then - if [[ ${CATEGORY} == cross-* ]] ; then - export CTARGET=${CATEGORY#cross-} - fi -fi -is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } - SLOT="7" -LIBPATH=/usr/$(get_libdir)/binutils/${CTARGET}/${PV} -INCPATH=${LIBPATH}/include -DATAPATH=/usr/share/binutils-data/${CTARGET}/${PV} -if is_cross ; then - BINPATH=/usr/${CHOST}/${CTARGET}/binutils-bin/${PV} -else - BINPATH=/usr/${CTARGET}/binutils-bin/${PV} -fi - S=${WORKDIR} +is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } + src_prepare() { if use multitarget ; then ewarn "You have enabled support for non-standard target architectures" @@ -197,6 +182,22 @@ src_prepare() { } src_configure() { + export CTARGET=${CTARGET:-${CHOST}} + if [[ ${CTARGET} == ${CHOST} ]] ; then + if [[ ${CATEGORY} == cross-* ]] ; then + export CTARGET=${CATEGORY#cross-} + fi + fi + + LIBPATH=/usr/$(get_libdir)/binutils/${CTARGET}/${PV} + INCPATH=${LIBPATH}/include + DATAPATH=/usr/share/binutils-data/${CTARGET}/${PV} + if is_cross ; then + BINPATH=/usr/${CHOST}/${CTARGET}/binutils-bin/${PV} + else + BINPATH=/usr/${CTARGET}/binutils-bin/${PV} + fi + # CPPFLAGS only affects ld64, cctools don't use 'em (which currently is # what we want) append-cppflags -DNDEBUG |