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 1OMDxK-0004fA-5z for garchives@archives.gentoo.org; Wed, 09 Jun 2010 05:36:02 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AF772E0713; Wed, 9 Jun 2010 05:35:57 +0000 (UTC) Received: from mail-ew0-f227.google.com (mail-ew0-f227.google.com [209.85.219.227]) by pigeon.gentoo.org (Postfix) with ESMTP id 17710E0822 for ; Wed, 9 Jun 2010 05:35:09 +0000 (UTC) Received: by ewy27 with SMTP id 27so1436719ewy.10 for ; Tue, 08 Jun 2010 22:35:08 -0700 (PDT) Received: by 10.213.28.138 with SMTP id m10mr12135021ebc.17.1276061708775; Tue, 08 Jun 2010 22:35:08 -0700 (PDT) Received: from pomiocik.lan (87-205-67-24.adsl.inetia.pl [87.205.67.24]) by mx.google.com with ESMTPS id 15sm3834699ewy.4.2010.06.08.22.35.07 (version=SSLv3 cipher=RC4-MD5); Tue, 08 Jun 2010 22:35:08 -0700 (PDT) Sender: Spam Box Date: Wed, 9 Jun 2010 07:34:27 +0200 From: =?UTF-8?B?TWljaGHFgiBHw7Nybnk=?= To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] [RFC] toolchain-funcs.eclass: functions to call compiler Message-ID: <20100609073427.77d7acdd@pomiocik.lan> In-Reply-To: <201006081844.55860.vapier@gentoo.org> References: <20100531211246.64181dab@pomiocik.lan> <201006060017.27856.vapier@gentoo.org> <20100606094551.3ceca0bc@pomiocik.lan> <201006081844.55860.vapier@gentoo.org> X-Mailer: Claws Mail 3.7.5 (GTK+ 2.20.1; x86_64-pc-linux-gnu) 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; micalg=PGP-SHA1; boundary="Sig_/L5Ksxbd5cVITtFgZ/+GsJM+"; protocol="application/pgp-signature" X-Archives-Salt: 795eedbe-09e9-4ef5-ba8d-dc194e921df2 X-Archives-Hash: 8bb75bd9c8869f408b94facc72147d4e --Sig_/L5Ksxbd5cVITtFgZ/+GsJM+ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, 8 Jun 2010 18:44:55 -0400 Mike Frysinger wrote: > On Sunday, June 06, 2010 03:45:51 Micha=C5=82 G=C3=B3rny wrote: > > 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-arc= h/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. >=20 > C/C++ files should always have a newline at the end ... that stub > file is currently missing one. Noted. > i dont know anything about zpaq, but it looks like you're installing > the bare .o files ? that's a bit odd. usually things like this are > installed as static archives for people to link in ... A single .o file exactly. ZPAQ in runtime can 'optimize' itself through creating compression scheme sources and calling 'zpaqmake' to compile it. The default 'zpaqmake.bat' included with it compiled these schemes along with 'zpaq.cpp' for the executable stub. I've decided that it'd be better to provide already compiled stub. Honestly, I didn't think long about the format. I guess .a could be better, or maybe even a shared library -- but GNU make doesn't seem to have implicit rules for these formats. --=20 Best regards, Micha=C5=82 G=C3=B3rny --Sig_/L5Ksxbd5cVITtFgZ/+GsJM+ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) iEYEARECAAYFAkwPJ+cACgkQnGSe5QXeB7s6TwCgiohAqriijiNsNaJ7OgmNG+cB XegAn1k8mFJJ0wuDdaL+ChQVIFN/l7E9 =Ugd/ -----END PGP SIGNATURE----- --Sig_/L5Ksxbd5cVITtFgZ/+GsJM+--