On Sun, Jun 21, 2009 at 5:19 PM, Peter Eisentraut<[email protected]> wrote:
> On Sunday 21 June 2009 17:02:43 Martin-Éric Racine wrote:
>> On Sun, Jun 21, 2009 at 4:57 PM, Peter Eisentraut<[email protected]> 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 -g produces GDB-specific output, which is not available on
non-GNU compilers.
-- 
Martin-Éric



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to