From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OM7YR-0008Ln-Ay for garchives@archives.gentoo.org; Tue, 08 Jun 2010 22:45:55 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 44515E074C; Tue, 8 Jun 2010 22:45:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id EB228E072C for ; Tue, 8 Jun 2010 22:45:15 +0000 (UTC) Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 8256E1B4012 for ; Tue, 8 Jun 2010 22:45:15 +0000 (UTC) From: Mike Frysinger Organization: wh0rd.org To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] [RFC] toolchain-funcs.eclass: functions to call compiler Date: Tue, 8 Jun 2010 18:44:55 -0400 User-Agent: KMail/1.13.1 (Linux/2.6.34; KDE/4.4.3; x86_64; ; ) References: <20100531211246.64181dab@pomiocik.lan> <201006060017.27856.vapier@gentoo.org> <20100606094551.3ceca0bc@pomiocik.lan> In-Reply-To: <20100606094551.3ceca0bc@pomiocik.lan> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2204702.XLIpKLQpy6"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201006081844.55860.vapier@gentoo.org> X-Archives-Salt: 88eab229-5059-4d1a-b199-b26593f7a860 X-Archives-Hash: 17f039a2a5968713ba0013be18ca9c84 --nextPart2204702.XLIpKLQpy6 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Sunday, June 06, 2010 03:45:51 Micha=C5=82 G=C3=B3rny wrote: > On Sun, 6 Jun 2010 00:17:27 -0400 Mike Frysinger wrote: > > i'm not saying `emake` covers all solutions you proposed, just that > > the base usage isnt nearly as bleak. there are some cases where > > having a wrapper around emake would be useful (such as compiling > > multiple files or linking things in). so if you wanted to slap > > something together, we can look at it further. >=20 > Well, I've already covered one corner case myself, which is the zpaq > ebuild. I would approve a comment on my idea here: >=20 > http://overlays.gentoo.org/proj/sunrise/changeset/10641/sunrise/app-arch/= zp > aq/zpaq-1.10.ebuild >=20 > The hard part was that zpaq.cpp had to be compiled to both the execu- > table and the stub object file (with additional -DOPT flag). >=20 > I've decided that the simplest and most fail-proof idea was to create > an additional source file, defining 'OPT' and including the real code, > and compiling all of that within a single 'emake' call. C/C++ files should always have a newline at the end ... that stub file is=20 currently missing one. i dont know anything about zpaq, but it looks like you're installing the ba= re=20 =2Eo files ? that's a bit odd. usually things like this are installed as= =20 static archives for people to link in ... wrt the emake stuff, that looks fine =2Dmike --nextPart2204702.XLIpKLQpy6 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) iQIcBAABAgAGBQJMDsfnAAoJEEFjO5/oN/WB7N8P/iRpz+4uTizE1hoYamNvcVXu 4iiEyrThOlJP3PPKm7gW9fSIdPfgLFHhrPWyDixLR1hDocfZQrWoxhHAsXuXLMyK Q2o++SwwnqQrYOp8d6gwHqEUGMzjfrQJB4/Pl5XlklY9tEklphUTlE1qKTjeMsm1 Grb5zAA4XT9APSiOdBLLkON6HkPMp4Ys5PbqjYjksn+dSFpf2BQ3UsjX9Un+sh+t gU8044M7GNpJ0PqWrgzvGa/JvM5sUyIj0JCRdyTj5k75Qcy6kUSG0v7Cpw8QByck JiaQeSklGNf69/L/MbDoiot9j+Lyof8IL0j9xrLWy3nLtSFIupz/vEYWnbcl8aGm IB8eP99p4MfjWCH+O1eflod0DcjcAwT4b1TyT2CuVcMVqGGw8Bk8I1EIK68pKBno A9WNaJAq/V9WP/wCFwFwRXjTLyFTFXR70ignp5kUiDcHGQDQPYrtnsjWuZR1DSKH ld3jLi+R2KVU4S0s2kI1VD2aB7tPCDZrkHLNyGjP59rsWAAmlswWH44yegXp0EdB O/iJlotcz+T+rykVNQ4NIc6GByLWNXyA7vNKflnDMvSGSgq6pkodFuznv9A4FEAC a9yauEc7SyOjLqCgpcndtUwcOljqe2cmY20PprjvtlgfZKqPiq/MkA2uZXkV5Dmk 8e3WS1mo1UM7DpGurs7h =TgKl -----END PGP SIGNATURE----- --nextPart2204702.XLIpKLQpy6--