[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
Jonas Smedegaard
dr at jones.dk
Sun Jun 21 15:04:13 UTC 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
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>
>> wrote:
>> > 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
>> CC=gcc.
>
>Why?
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
- --
* 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)
iEYEAREDAAYFAko+S+0ACgkQn7DbMsAkQLj5XgCgmzGY8LG1OV/UuPMGV5NjY48u
lfIAoIxU4hsGyxpxV2oRzASNIZPy+5TD
=zGle
-----END PGP SIGNATURE-----
More information about the Build-common-hackers
mailing list