My Experiences with LDFLAGS
I thought I'd add this to the post. Perhaps someone can confirm/correct my problems.
In the hopes of maximizing speed and optimizing my system, I added the following to make.conf -
Code: Select all
CFLAGS="-O2 -pipe -march=pentium4 -fomit-frame-pointer"
CFLAGS=" -maccumulate-outgoing-args -ftracer" #<-- additional opts
CFLAGS+=" -mmmx -msse -msse2" #<-- for the extra registers
CFLAGS+=" -mfpmath=sse" #<-- for my math libs
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,-s"
CFLAGS="$CFLAGS $LDFLAGS" #<-- gives lots of gcc warnings but works
CXXFLAGS="$CFLAGS -fvisibility-inlines-hidden"
I felt adding LDFLAGS to CFLAGS would force those packages that do not otherwise use LDFLAGS to do so.
I'm using hardened toolchain, with gcc-3.4.2 with the latest glibc libs, system compiled from the ground up.
One of the strangeness I noticed was that some of the executables now had the suffix "*.c.20.combine". This was especially noticable in the star & cdrtools packages. Other packages exhibiting this behavior are pkgconfig, gdb and xterm. I had to manually go into the PORTAGE_TMPDIR and rename the files for the application to complete the merge.
Other applications also give similar problems, I can't remember exactly which ones, but the fix usually involved me having to manually rename files or move them around in PORTAGE_TMPDIR.
Another problem I noticed was when kdelibs failed to compile. After a lot of backtracking, I found that the problem was with the jpeg package. With LDFLAGS in CFLAGS, libjpeg.so is not created. Which is very odd. [Perhaps this sould be in a bug report.]
All said and done, I feel my system is now a lot more responsive. E.g., konqueror opens immediately instead of the normal 2-3 second delay.
So my questions here are -
1) anyone else try the above?
2) if so (or even otherwise) anyone else notice anything similar with cdrtools?
3) what about the jpeg package?
4) if you haven't tried this, would anyone else be willing to confirm the above, just so I know it's not specific to my system?
Thanks.
And BTW pretty good HOWTO, somet things I really like, others I'm not yet ready to embrace.