Gentoo Archives: gentoo-dev

From: Andrew D Kirch <trelane@×××××××.net>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] http://bugs.gentoo.org/show_bug.cgi?id=232084
Date: Tue, 24 Feb 2009 05:57:33
Message-Id: 49A38C45.5080301@trelane.net
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.

Replies

Subject Author
Re: [gentoo-dev] http://bugs.gentoo.org/show_bug.cgi?id=232084 Mike Frysinger <vapier@g.o>
Re: [gentoo-dev] http://bugs.gentoo.org/show_bug.cgi?id=232084 Caleb Cushing <xenoterracide@×××××.com>