Gentoo Archives: gentoo-hardened

From: "Peter S. Mazinger" <ps.m@×××.net>
To: gentoo-hardened@g.o
Cc: pappy@g.o
Subject: [gentoo-hardened] -DPIC not defined in hardened gcc-3.3.2
Date: Tue, 02 Dec 2003 19:43:19
Message-Id: Pine.LNX.4.44.0312022022400.6052-200000@lnx.bridge.net
1 Hello!
2
3 I am trying to build rpm-4.0.4 with hardened-gcc-3.3.2 and it works only
4 with nopie out of the box (against uclibc, sorry, it's not really gentoo
5 related - only hardened -, but the embedded list is also an unproper place
6 to ask for now). The problem is coming from the fact, that PIC is not
7 defined (checked sources and #ifdef PIC is used).
8 Should -DPIC (and -Dpic) not be added to gcc's specs, or is this only
9 the program's fault not using __PIC__ (or __pic__)?
10
11 I have attached my diff between original gcc-3.3.2 and what I used.
12
13 Thanks, Peter
14
15 --
16 Peter S. Mazinger <ps.m@×××.net> ID: 0xA5F059F2 NIC: IXUYHSKQLI
17 Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2
18
19 ____________________________________________________________________
20 Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol.
21 Probald ki most! http://www.freestart.hu

Attachments

File name MIME type
specs.diff text/plain

Replies

Subject Author
[gentoo-hardened] Re: -DPIC not defined in hardened gcc-3.3.2 Alexander Gabert <pappy@g.o>