help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to supress debug symbols?


From: Alexander Mamonov
Subject: Re: How to supress debug symbols?
Date: Mon, 11 May 2009 17:54:53 -0500

My bad, I didn't pass anything in CXXFLAGS and CFLAGS, so it seems
that they were defaulted to -g -O2. Sorry for the trouble.
I could still use some advice on .oct files though.

Regards,
Alex

On Mon, May 11, 2009 at 3:16 PM, Alexander Mamonov <address@hidden> wrote:
> Hello,
>
> I'm absolutely sure that the CXXFLAGS and CFLAGS variables that I set
> before doing ./configure do not contain any -g parameters. Another
> problem that I have noticed is that while the size of dll's was
> sufficiently reduced by doing the -Wl,--strip-debug hack, the size of
> .oct files is still quite large (on the order of couple MB each). Can
> it be that they are also built with debug symbols? Or can it be that
> they are linked statically and thus have such a large size?
> Input from MinGW gurus here (Tatsuro, Benjamin) is appreciated.
> Thanks,
>
> Alex
>
> On Mon, May 11, 2009 at 11:45 AM, John W. Eaton <address@hidden> wrote:
>> On 10-May-2009, Alexander Mamonov wrote:
>>
>> | I'm trying to compile Octave from the recent sources (MinGW TDM gcc
>> | 4.3.0), and I want to keep the size of the resulting ddl's small. I
>> | tried adding -Wl,--strip-debug to LDFLAGS, but it seems that it does
>> | not affect anything. After ./configure I can see my LDFLAGS being
>> | added to Makeconf, but when the dll is built, I do not see my LDFLAGS
>> | in the console output. If I hack Makeconf and add -Wl,--strip-debug to
>> | SH_LDFLAGS it works, but this is of course very ugly way of doing
>> | things. What is the proper way to build Octave without debug symbols?
>>
>> If you don't want debugging symbols, then don't use -g in CXXFLAGS,
>> CFLAGS, and FFLAGS.
>>
>> jwe
>>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]