[Build-common-hackers] Bug#487546: Bug#487546: Bug#487546: Bug#487546: Bug#487546: cdbs: class/langcore.mk should set CC=gcc if CC is not set
dr at jones.dk
Sun Jun 21 15:04:13 UTC 2009
-----BEGIN PGP SIGNED MESSAGE-----
On Sun, Jun 21, 2009 at 05:19:56PM +0300, Peter Eisentraut wrote:
>On Sunday 21 June 2009 17:02:43 Martin-Éric Racine wrote:
>> On Sun, Jun 21, 2009 at 4:57 PM, Peter Eisentraut<petere at debian.org>
>> > On Sunday 21 June 2009 13:57:05 Martin-Éric Racine wrote:
>> >> PS: this is precisely what I've had to do for CUPS-PDF in Debian,
>> >> that is, create a compile line in debian/rules and, because
>> >> langcore.mk doesn't set CC if it's empty, manually specific CC=gcc
>> >> in debian/rules as a kludge.
>> > There is still something unusual going on in your environment that
>> > you are not telling us about. GNU make sets CC = cc implicitly.
>> > Does that not happen for you? Or do you have a non-GCC compiler
>> > installed?
>> Setting CC=cc is entirely the wrong thing to do when passing -g as a
>> compiler option. If you pass -g, then you also need to specific
Because e.g. tcc might not support -g.
It is relevant on a non-Debian or otherwise weird environment.
Debian packaging routines assumes some things about the environment.
CDBS should not set the C compiler - cc is assumed to be gcc.
CDBS also rely on PATH being sane. We should not try fix weird
environments, just assume that environment is sane.
* Jonas Smedegaard - idealist og Internet-arkitekt
* Tlf.: +45 40843136 Website: http://dr.jones.dk/
[x] quote me freely [ ] ask before reusing [ ] keep private
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the Build-common-hackers