* [gentoo-dev] http://bugs.gentoo.org/show_bug.cgi?id=232084
@ 2009-02-24 5:57 99% Andrew D Kirch
0 siblings, 0 replies; 1+ results
From: Andrew D Kirch @ 2009-02-24 5:57 UTC (permalink / raw
To: gentoo-dev
I was looking to do a workaround on a per compiler basis.
I'm looking at toolchain-funcs.eclass, and specifically
${gcc-fullversion}. I've got a broken ebuild (dhcdbd) which requires
-U_FORTIFY_SOURCE to compile correctly with GCC 4.3.3. But reading
tells me that I should not use this eclass to set compiler settings
directly. Will this work, and other than the merit of the fix is there
a more desirable structure for such a solution?
inherit flag-o-matic toolchain-funcs
if [ "${gcc-fullversion}" -eq "4.3.3" ] #(or whatever the 4.3.3
$gcc-fullversion} outputs)
then
append-flags -U_FORTIFY_SOURCE
fi
Thanks for the help.
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2009-02-24 5:57 99% [gentoo-dev] http://bugs.gentoo.org/show_bug.cgi?id=232084 Andrew D Kirch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox