Gentoo Archives: gentoo-hardened

From: Edward Epstein <peepstein@××××××.com>
To: gentoo-hardened@l.g.o
Subject: [gentoo-hardened] gcc flag -prefer-pic
Date: Thu, 21 Oct 2004 05:56:00
Message-Id: 200410202255.54835.peepstein@canada.com
1 I am recompling php and I noticed that the ebuild is using a -prefer-pic flag
2 during what I assume to be the linking process (example command below). I
3 hadn't seen that flag before so I looked in the gcc manpage but there's no
4 mention of -prefer-pic anywhere. Is this flag specific to hardened gentoo?
5 Has it been added recently? Just curious, because I'd not noticed it
6 before...
7
8 Thanks,
9 Edward
10
11 ------------e.g.:
12 /bin/sh /var/tmp/portage/mod_php-4.3.9/work/php-4.3.9/libtool --silent
13 --preserve-dup-deps --mode=compile gcc -DHAVE_CONFIG_H-Iext/mbstring/
14 -I/var/tmp/portage/mod_php-4.3.9/work/php-4.3.9/ext/mbstring/ -DPHP_ATOM_INC
15 -I/var/tmp/portage/mod_php-4.3.9/work/php-4.3.9/include
16 -I/var/tmp/portage/mod_php-4.3.9/work/php-4.3.9/main
17 -I/var/tmp/portage/mod_php-4.3.9/work/php-4.3.9
18 -I/var/tmp/portage/mod_php-4.3.9/work/php-4.3.9/Zend -I/usr/include/libxml2
19 -I/var/tmp/portage/mod_php-4.3.9/work/php-4.3.9/ext/mbstring/mbregex
20 -I/var/tmp/portage/mod_php-4.3.9/work/php-4.3.9/ext/mbstring/libmbfl
21 -I/var/tmp/portage/mod_php-4.3.9/work/php-4.3.9/ext/mbstring/libmbfl/mbfl
22 -I/usr/include/mysql -I/usr/include/postgresql/pgsql -I/usr/qt/3/include
23 -I/var/tmp/portage/mod_php-4.3.9/work/php-4.3.9/ext/xml/expat
24 -I/var/tmp/portage/mod_php-4.3.9/work/php-4.3.9/TSRM -Os -march=pentium3
25 -fomit-frame-pointer -pipe -prefer-pic
26 -c /var/tmp/portage/mod_php-4.3.9/work/php-4.3.9/ext/mbstring/libmbfl/mbfl/mbfilter_8bit.c
27 -o ext/mbstring/libmbfl/mbfl/mbfilt
28
29
30
31 --
32
33 "It has been said that man is a rational animal. All my life I have
34 been searching for evidence which could support this."
35 --Bertrand Russell.
36
37 "The American empire is ideological, not territorial. We are the most
38 ideological people in the world, and we are so united in our view that we
39 don't understand there can be other views."
40 --Lt. Gen. William Odom, ret. (Former Director of NSA).
41
42 "Nothing takes the taste out of peanut butter quite like unrequited love."
43 --Charlie Brown
44
45 "Let us endeavour to live our lives so that when we die even the undertaker
46 will be sorry."
47 --Mark Twain
48
49 --
50 gentoo-hardened@g.o mailing list