Tor hardening at compile time

andrew at andrew at
Sat May 8 13:59:58 UTC 2010

On Fri, May 07, 2010 at 03:15:07PM +0200, jacob at wrote 6.0K bytes in 166 lines about:
: You can use it like so:
: ./ && ./configure --enable-gcc-warnings --enable-gcc-hardening
: --enable-linker-hardening && make && sudo make install

Here are the results from OSX 10.5 build machine:

CFLAGS="-O -g -mmacosx-version-min=10.4 -isysroot
/Developer/SDKs/MacOSX10.4u.sdk -arch i386"
CONFDIR=/Library/Tor ./configure --prefix=/Library/Tor
--bindir=/Library/Tor --sysconfdir=/Library
--disable-dependency-tracking gcc="4.0" --enable-gcc-warnings
--enable-gcc-hardening --enable-linker-hardening

configure: error: C compiler cannot create executables

attached is the config.log

Andrew Lewman
The Tor Project
pgp 0x31B0974B

Blog: torproject
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log.gz
Type: application/octet-stream
Size: 3143 bytes
Desc: not available
URL: <>

More information about the tor-dev mailing list