Thomas Funk wrote:
> @Dan:  As '-g' is part of the default cflags this is the reason why my
> executable has 1,5M. Without it has around 450k. with '-O3' the size 
> has increased and no change of the behavior - works as with '-O2'. 
> So, it's not the optimize parameter ...

My first idea was that a newer libc6 is used to built the distribution
package. So I checked the auto build log:
https://buildd.debian.org/status/fetch.php?pkg=fvwm&arch=ia64&ver=1%3A2.6.5.ds-3&stamp=1384445601
And yes, they used 2.17 but the Changelog of libc6 doesn't show any
Changes for the used C commands in WriteToFile between my used 2.15 and
2.17. Fedora 19 use 2.17, too and the self build works there also.

Anyway I've built FVWM the Debian way to exclude the idea of problems
with newer libs. With my libs the normal self compile way works but not
the Debian way. Same issue with the original distribution package :(

The next idea was the patches used by Chen, so I patched my working 
version after make clean, compiled it and ... it worked fine again.

Also I used the long configure command like Debian used. Same behavior
- works.

Looks quiet bad ... Something get wrong while the build Debian does
but no clue what's the problem ...

I will investigate some time over the weekend. Hope I'll find something.

By the way, Debian use -g as FVWM pretends by default. They reduce the
size with strip. That's the secret ... not an optimization with -O

- Thomas -

Reply via email to