summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorGeorge Shapovalov <george@gentoo.org>2008-07-06 13:00:53 +0000
committerGeorge Shapovalov <george@gentoo.org>2008-07-06 13:00:53 +0000
commite15262a3162513c43b363d6a8634ee85a23c83de (patch)
treec29e854324999d5858c5f39d374013c8482765a6 /eclass
parentamd64/x86 stable, bug #230937 (diff)
downloadgentoo-2-e15262a3162513c43b363d6a8634ee85a23c83de.tar.gz
gentoo-2-e15262a3162513c43b363d6a8634ee85a23c83de.tar.bz2
gentoo-2-e15262a3162513c43b363d6a8634ee85a23c83de.zip
made --enable-libada conditional on PN, as ACT's gnat does not like it
Diffstat (limited to 'eclass')
-rw-r--r--eclass/gnatbuild.eclass9
1 files changed, 7 insertions, 2 deletions
diff --git a/eclass/gnatbuild.eclass b/eclass/gnatbuild.eclass
index e3a2814c4bfb..02d262c578e0 100644
--- a/eclass/gnatbuild.eclass
+++ b/eclass/gnatbuild.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gnatbuild.eclass,v 1.39 2008/04/14 14:54:21 george Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gnatbuild.eclass,v 1.40 2008/07/06 13:00:53 george Exp $
#
# Author: George Shapovalov <george@gentoo.org>
# Belongs to: ada herd <ada@gentoo.org>
@@ -457,6 +457,12 @@ gnatbuild_src_compile() {
--disable-werror \
--disable-libunwind-exceptions"
+ # ACT's gnat-gpl does not line libada for whatever reason..
+ if ${PN} == ${PN_GnatGpl}; then
+ confgcc="${confgcc} --disable-libada"
+ else
+ confgcc="${confgcc} --enable-libada"
+ fi
# einfo "confgcc=${confgcc}"
cd "${GNATBUILD}"
@@ -471,7 +477,6 @@ gnatbuild_src_compile() {
--infodir=${DATAPATH}/info \
--program-prefix=gnat \
--enable-languages="c,ada" \
- --enable-libada \
--with-gcc \
--enable-threads=posix \
--enable-shared \