public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Steve Arnold (nerdboy)" <nerdboy@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in eclass: gnatbuild.eclass
Date: Thu, 14 Nov 2013 06:20:07 +0000 (UTC)	[thread overview]
Message-ID: <20131114062007.22AEC2004B@flycatcher.gentoo.org> (raw)

nerdboy     13/11/14 06:20:07

  Modified:             gnatbuild.eclass
  Log:
  updated gnatbuild for new ebuilds and lto use flag handling

Revision  Changes    Path
1.57                 eclass/gnatbuild.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnatbuild.eclass?rev=1.57&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnatbuild.eclass?rev=1.57&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnatbuild.eclass?r1=1.56&r2=1.57

Index: gnatbuild.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/gnatbuild.eclass,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -r1.56 -r1.57
--- gnatbuild.eclass	2 Aug 2013 17:38:57 -0000	1.56
+++ gnatbuild.eclass	14 Nov 2013 06:20:06 -0000	1.57
@@ -1,6 +1,6 @@
 # Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gnatbuild.eclass,v 1.56 2013/08/02 17:38:57 george Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gnatbuild.eclass,v 1.57 2013/11/14 06:20:06 nerdboy Exp $
 #
 # Author: George Shapovalov <george@gentoo.org>
 # Belongs to: ada herd <ada@gentoo.org>
@@ -485,12 +485,19 @@
 					confgcc="${confgcc} --disable-nls"
 				fi
 
+				if [ "${GNATMINOR}" -ge "6" ] ; then
+					confgcc+=( $(use_enable lto) )
+				elif [ "${GNATMINOR}" -ge "5" ] ; then
+					confgcc+=( --disable-lto )
+				fi
+
 				# reasonably sane globals (from toolchain)
 				# also disable mudflap and ssp
 				confgcc="${confgcc} \
 					--with-system-zlib \
 					--disable-checking \
 					--disable-werror \
+					--disable-libgomp \
 					--disable-libmudflap \
 					--disable-libssp \
 					--disable-libunwind-exceptions"
@@ -554,6 +561,11 @@
 				cp "${S}"/gcc/ada/xeinfo.adb   .
 				cp "${S}"/gcc/ada/xnmake.adb   .
 				cp "${S}"/gcc/ada/xutil.ad{s,b}   .
+				if [[ ${GNATMINOR} > 5 ]] ; then
+					cp "${S}"/gcc/ada/einfo.ad{s,b}  .
+					cp "${S}"/gcc/ada/csinfo.adb  .
+					cp "${S}"/gcc/ada/ceinfo.adb  .
+				fi
 				gnatmake xtreeprs && \
 				gnatmake xsinfo   && \
 				gnatmake xeinfo   && \
@@ -645,7 +657,7 @@
 		make DESTDIR="${D}" install || die
 
 		#make a convenience info link
-		dosym ${DATAPATH}/info/gnat_ugn_unw.info ${DATAPATH}/info/gnat.info
+		dosym ${DATAPATH}/info/gnat_ugn.info ${DATAPATH}/info/gnat.info
 		;;
 
 	move_libs)
@@ -713,6 +725,14 @@
 		# remove duplicate docs
 		rm -f  "${D}${DATAPATH}"/info/{dir,gcc,cpp}*
 		rm -rf "${D}${DATAPATH}"/man/man7/
+
+		# fix .la path for lto plugin
+		if use lto ; then
+			sed -i -e \
+				"/libdir=/c\libdir='${LIBEXECPATH}'" \
+				"${D}${LIBEXECPATH}"/liblto_plugin.la \
+				|| die "sed update of .la file failed!"
+		fi
 		;;
 
 	prep_env)





             reply	other threads:[~2013-11-14  6:20 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-14  6:20 Steve Arnold (nerdboy) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-10-17 13:17 [gentoo-commits] gentoo-x86 commit in eclass: gnatbuild.eclass George Shapovalov (george)
2014-10-15  9:52 Steve Arnold (nerdboy)
2013-08-02 17:38 George Shapovalov (george)
2011-05-23 14:09 George Shapovalov (george)
2011-03-10 19:36 George Shapovalov (george)
2010-01-22 13:27 George Shapovalov (george)
2010-01-21 11:05 George Shapovalov (george)
2009-08-30  9:09 George Shapovalov (george)
2009-04-25 10:46 George Shapovalov (george)
2009-02-03 13:58 George Shapovalov (george)
2008-12-08 13:29 George Shapovalov (george)
2008-12-05  8:36 George Shapovalov (george)
2008-11-29  0:46 George Shapovalov (george)
2008-08-19 11:39 George Shapovalov (george)
2008-08-12  9:26 George Shapovalov (george)
2008-07-06 13:00 George Shapovalov (george)
2008-04-14 14:54 George Shapovalov (george)
2008-04-12  7:47 George Shapovalov (george)
2008-02-13 20:12 George Shapovalov (george)
2008-02-11 15:12 George Shapovalov (george)
2007-12-27  8:51 George Shapovalov (george)
2007-10-10 18:17 George Shapovalov (george)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131114062007.22AEC2004B@flycatcher.gentoo.org \
    --to=nerdboy@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox