summaryrefslogtreecommitdiff
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
commit751585723279447e04061eb3370ed95fded0200c (patch)
tree59004ef7862a15e407fc8c3fa631b2bd06eac438 /eclass/gnatbuild.eclass
parentamd64/x86 stable, bug #230937 (diff)
downloadhistorical-751585723279447e04061eb3370ed95fded0200c.tar.gz
historical-751585723279447e04061eb3370ed95fded0200c.tar.bz2
historical-751585723279447e04061eb3370ed95fded0200c.zip
made --enable-libada conditional on PN, as ACT's gnat does not like it
Diffstat (limited to 'eclass/gnatbuild.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 \