1 |
I was looking to do a workaround on a per compiler basis. |
2 |
I'm looking at toolchain-funcs.eclass, and specifically |
3 |
${gcc-fullversion}. I've got a broken ebuild (dhcdbd) which requires |
4 |
-U_FORTIFY_SOURCE to compile correctly with GCC 4.3.3. But reading |
5 |
tells me that I should not use this eclass to set compiler settings |
6 |
directly. Will this work, and other than the merit of the fix is there |
7 |
a more desirable structure for such a solution? |
8 |
|
9 |
|
10 |
inherit flag-o-matic toolchain-funcs |
11 |
|
12 |
|
13 |
if [ "${gcc-fullversion}" -eq "4.3.3" ] #(or whatever the 4.3.3 |
14 |
$gcc-fullversion} outputs) |
15 |
then |
16 |
append-flags -U_FORTIFY_SOURCE |
17 |
fi |
18 |
|
19 |
Thanks for the help. |