From: Vibhav Garg <vgarg@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] What to do with things like -fpie in CFLAGS in environment?
Date: Fri, 15 Apr 2005 15:13:59 -0500 [thread overview]
Message-ID: <42602087.9080309@gentoo.org> (raw)
In-Reply-To: <20050415192738.GT8632@kfk4ever.com>
-----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
next prev parent reply other threads:[~2005-04-15 20:13 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-12 15:59 [gentoo-dev] What to do with things like -fpie in CFLAGS in environment? Maurice van der Pot
2005-04-12 16:10 ` Daniel Ostrow
2005-04-12 20:41 ` Maurice van der Pot
2005-04-15 19:27 ` Maurice van der Pot
2005-04-15 19:38 ` Mike Frysinger
2005-04-15 19:55 ` Maurice van der Pot
2005-04-15 20:05 ` Mike Frysinger
2005-04-15 20:28 ` Maurice van der Pot
2005-04-15 19:40 ` Stephen Bennett
2005-04-15 19:52 ` Maurice van der Pot
2005-04-15 20:13 ` Vibhav Garg [this message]
2005-04-15 20:36 ` Mike Frysinger
2005-04-12 17:52 ` Mike Frysinger
2005-04-12 18:20 ` Maurice van der Pot
2005-04-12 20:13 ` Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42602087.9080309@gentoo.org \
--to=vgarg@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox