From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp816.mail.sc5.yahoo.com (smtp816.mail.sc5.yahoo.com [66.163.170.2]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j3FKDilS002476 for ; Fri, 15 Apr 2005 20:13:44 GMT Received: from unknown (HELO ?192.168.0.101?) (vibhavgarg1@sbcglobal.net@69.217.121.123 with plain) by smtp816.mail.sc5.yahoo.com with SMTP; 15 Apr 2005 20:13:53 -0000 Message-ID: <42602087.9080309@gentoo.org> Date: Fri, 15 Apr 2005 15:13:59 -0500 From: Vibhav Garg User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050413) X-Accept-Language: en-us, en Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] What to do with things like -fpie in CFLAGS in environment? References: <20050412155953.GM8632@kfk4ever.com> <1113322225.8062.8.camel@Memoria.anyarch.net> <20050415192738.GT8632@kfk4ever.com> In-Reply-To: <20050415192738.GT8632@kfk4ever.com> X-Enigmail-Version: 0.90.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 501df243-a946-4af9-9c9a-e5eab09c59c5 X-Archives-Hash: 54e55a2efa472b40ab4831378a43648a -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Maurice van der Pot wrote: > On Tue, Apr 12, 2005 at 12:10:25PM -0400, Daniel Ostrow wrote: > >>Take a look at dev-libs/glib/files/glib-2.6.3-testglib-ssp.patch to see >>how solar and I dealt with a similar issue with tests and ssp. See if >>you can adapt it, we just forced -fno-stack-protector after the CFLAGS >>pulled in from the system. >> > > > Ok, so I thought it was all well and good, but now a bug report made me > realise that gcc < 3.4 doesn't have -fpie/-fno-pie. > > Here's the problem: > 1) valgrind has some features that only work with -fpie > 2) valgrind's tests fail to build with -fpie > 3) because of the hardened gcc profile, valgrind's tests need -fno-pie > 4) simply patching some makefiles to add -fno-pie for tests is not > possible because gcc < 3.4 doesn't support -fno-pie > 5) having the valgrind developers modify their configure/makefiles to > add -fno-pie for tests in case gcc supports it is not enough, because > user CFLAGS are appended and CFLAGS in make.conf may contain -fpie > 6) using filter-flags to get rid of -fpie in user's CFLAGS actually > adds -fno-pie and disables features referred to in 1) > > What do I do now? > > Why is -fno-pie being added by filter-flags anyway? > > Maurice. > Sorry for the dumb question but was do -fpie and -fno-pie do? Vibhav -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCYCCDiriTCkdDSX4RAh0jAKCUE560f+O4wDPLsG4cKQvYAPIb/wCfZoaE wom30rnS7jvQRshUsIDCyGc= =Wnty -----END PGP SIGNATURE----- -- gentoo-dev@gentoo.org mailing list