diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-01-27 11:49:34 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-01-27 11:49:34 -0500 |
commit | 2b29c8f48f5c4b9b172e5975adba61a72a275a7a (patch) | |
tree | d090321218efaa55cdeee188207e90057eef3fbc | |
parent | 247a21379af1cf90896d9818cf448d9687f6277c (diff) | |
parent | 1f5c5624f48b078e8c421874bf0015e84bda57f7 (diff) | |
download | tor-2b29c8f48f5c4b9b172e5975adba61a72a275a7a.tar.gz tor-2b29c8f48f5c4b9b172e5975adba61a72a275a7a.zip |
Merge remote-tracking branch 'sebastian/osx_deadstrip'
-rw-r--r-- | changes/osx_deadstrip | 5 | ||||
-rw-r--r-- | configure.in | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/changes/osx_deadstrip b/changes/osx_deadstrip new file mode 100644 index 0000000000..f16eca4685 --- /dev/null +++ b/changes/osx_deadstrip @@ -0,0 +1,5 @@ + o Minor features: + - Use the dead_strip option when building Tor on OS X. This reduces binary + size by almost 19% when linking openssl and libevent statically, which + we do for TBB. + diff --git a/configure.in b/configure.in index e4bb12d74c..ddb682379d 100644 --- a/configure.in +++ b/configure.in @@ -1160,12 +1160,13 @@ else fi # OS X Lion started deprecating the system openssl. Let's just disable -# all deprecation warnings on OS X. +# all deprecation warnings on OS X. Also, to potentially make the binary +# a little smaller, let's enable dead_strip. case "$host_os" in darwin*) CFLAGS="$CFLAGS -Wno-deprecated-declarations" - ;; + LDFLAGS="$LDFLAGS -dead_strip" ;; esac # Add some more warnings which we use in development but not in the |