Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Andrew D Kirch <trelane@...>
Subject: http://bugs.gentoo.org/show_bug.cgi?id=232084
Date: Tue, 24 Feb 2009 00:57:25 -0500
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.



Replies:
Re: http://bugs.gentoo.org/show_bug.cgi?id=232084
-- Caleb Cushing
Re: http://bugs.gentoo.org/show_bug.cgi?id=232084
-- Mike Frysinger
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Gentoo Council Reminder for February 26
Next by thread:
Re: http://bugs.gentoo.org/show_bug.cgi?id=232084
Previous by date:
Re: bash-4.0 regression heads up (escaped semicolons in subshells)
Next by date:
Re: Issues regarding glep-55 (Was: [gentoo-council] Re: Preliminary Meeting-Topics for 12 February 2009)


Updated Jul 03, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.