소스 검색

Merge remote-tracking branch 'sebastian/osx_deadstrip'

Nick Mathewson 12 년 전
부모
커밋
2b29c8f48f
2개의 변경된 파일8개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 0
      changes/osx_deadstrip
  2. 3 2
      configure.in

+ 5 - 0
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.
+

+ 3 - 2
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