summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-embedded/sdcc/sdcc-9999.ebuild')
-rw-r--r--dev-embedded/sdcc/sdcc-9999.ebuild14
1 files changed, 11 insertions, 3 deletions
diff --git a/dev-embedded/sdcc/sdcc-9999.ebuild b/dev-embedded/sdcc/sdcc-9999.ebuild
index 9a323b87854e..8e724857ef91 100644
--- a/dev-embedded/sdcc/sdcc-9999.ebuild
+++ b/dev-embedded/sdcc/sdcc-9999.ebuild
@@ -1,10 +1,10 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-embedded/sdcc/sdcc-9999.ebuild,v 1.6 2015/07/13 08:01:30 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/sdcc/sdcc-9999.ebuild,v 1.7 2015/07/13 08:24:46 vapier Exp $
EAPI="5"
-inherit eutils
+inherit eutils toolchain-funcs
if [[ ${PV} == "9999" ]] ; then
ESVN_REPO_URI="https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc"
@@ -49,6 +49,12 @@ src_prepare() {
-e 's:\<(PORTDIR|ARCH)\>:SDCC\1:g' \
{} + || die
+ # https://sourceforge.net/p/sdcc/bugs/2398/
+ sed -i '1iAR = @AR@' Makefile.common.in || die
+ sed -i \
+ -e "/^AR =/s:=.*:=$(tc-getAR):" \
+ support/cpp/Makefile.in || die
+
# We'll install doc manually
sed -i -e '/SDCC_DOC/d' Makefile.in || die
sed -i -e 's/ doc//' sim/ucsim/packages_in.mk || die
@@ -61,8 +67,10 @@ src_prepare() {
}
src_configure() {
- ac_cv_prog_STRIP=true \
econf \
+ ac_cv_prog_STRIP=true \
+ ac_cv_prog_AS="$(tc-getAS)" \
+ ac_cv_prog_AR="$(tc-getAR)" \
--without-ccache \
$(use_enable boehm-gc libgc) \
$(docs_compile && use_enable doc || echo --disable-doc)