Hello hppa, the following snippet from evolution ebuild makes me wonder if this should not be done via functions from flag-o-matic eclass and if it is even relevant at all nowadays. Thanks in advance for your lights on the situation. # Bug #? if [ "${ARCH}" = "hppa" ]; then append-flags "-fPIC -ffunction-sections" # bad bad bad, what about user settings !!! export LDFLAGS="-ffunction-sections -Wl,--stub-group-size=25000" fi
Never seen that before. When did it get introduced?
It's in since at least evolution-1.4.3 rev 1.3 http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/evolution/evolution-1.4.3.ebuild?hideattic=0&rev=1.9&view=log > Revision 1.3 - (view) (download) (annotate) - [select for diffs] > Tue Aug 5 09:03:04 2003 UTC (6 years ago) by gmsoft > Branch: MAIN > Changes since 1.2: +7 -2 lines > Diff to previous 1.2 > > Added hppa to KEYWORDS. Added some flags for hppa to make it compile. I thought you would have known this but seeing how old this changed is... Anyway, could you possibly test if these changes are still needed nowadays ?
(In reply to comment #2) > > Revision 1.3 - (view) (download) (annotate) - [select for diffs] > > Tue Aug 5 09:03:04 2003 UTC (6 years ago) by gmsoft > > Branch: MAIN > > Changes since 1.2: +7 -2 lines > > Diff to previous 1.2 > > > > Added hppa to KEYWORDS. Added some flags for hppa to make it compile. Back then Gentoo didn't discourage hacks like these as actively as it's done these days. A configure patch would be more appropriate now, but I will test to see if perhaps a current compiler recognises and fixes the issue without additional compiler flags. > I thought you would have known this but seeing how old this changed is... > Anyway, could you possibly test if these changes are still needed nowadays ? Working on it.
Runs fine without those, so I've removed them from all ebuilds. You may still want to look at this bit right above it, though: # problems with -O3 on gcc-3.3.1 replace-flags -O3 -O2 ;-)