pan-users
[Top][All Lists]
Advanced

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

Re: [Pan-users] pan always crashing fast again


From: reijo . korhonen
Subject: Re: [Pan-users] pan always crashing fast again
Date: Sun, 30 Jul 2023 00:53:06 +0300
User-agent: Evolution 3.36.5-0ubuntu1

On Sat, 2023-07-15 at 22:20 -0700, dchmelik@gmail.com wrote:
> 
> The pan.SlackBuild uses these compiling flags '-O2 -fPIC'.  Do any
> these 
> conflict with '-Oo -g'?

Yes, '-O2' mean normal optimization, which mean, that compiled code is
optimized so, that compiled code may not point to source code lines,
because some source code lines may not be needed by compiler
optimization, compiled code order is different than source code line
order etc. '-g' means that compiled code includes also source lines, so
debugger can show you source lines.

You should use '-Oo -g -fPIC' options for debuggable version of pan.

'-fPIC' means "Position Independent Code" which  means that the
generated machine code is not dependent on being located at a specific
address in order to work. This is normal for libraries and also for
apps, I think, because opposite is needed only for drivers, that must
be in certain location in memory.

-- 
Reijo Korhonen, old school developer




reply via email to

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