From: <cod...@go...> - 2009-08-11 20:39:00
|
Revision: 395 Author: wol...@gm... Date: Tue Aug 11 13:36:24 2009 Log: add a magic incantation to reduce executable sizes and link times by a huge factor (i.e. 1MB instead of 31MB for an unstripped binary): ghc-options: -optl-Wl,-dead_strip http://code.google.com/p/hoc/source/detail?r=395 Modified: /trunk/hoc/Samples/Browser/Browser.cabal /trunk/hoc/Samples/Editor/Editor.cabal /trunk/hoc/Samples/ExpressionParser/ExpressionParser.cabal /trunk/hoc/Samples/UniqSort/UniqSort.cabal ======================================= --- /trunk/hoc/Samples/Browser/Browser.cabal Tue Aug 11 13:08:42 2009 +++ /trunk/hoc/Samples/Browser/Browser.cabal Tue Aug 11 13:36:24 2009 @@ -7,3 +7,6 @@ main-is: Main.hs build-depends: base, array, HOC, HOC-Cocoa, HOC-Foundation, HOC-AppKit, parsec >= 3.0 + +-- reduce executable size by *a lot*: +ghc-options: -optl-Wl,-dead_strip ======================================= --- /trunk/hoc/Samples/Editor/Editor.cabal Tue Aug 11 13:08:42 2009 +++ /trunk/hoc/Samples/Editor/Editor.cabal Tue Aug 11 13:36:24 2009 @@ -6,3 +6,6 @@ executable: Editor main-is: Main.hs build-depends: base, HOC, HOC-Cocoa, HOC-Foundation, HOC-AppKit, parsec >= 3.0 + +-- reduce executable size by *a lot*: +ghc-options: -optl-Wl,-dead_strip ======================================= --- /trunk/hoc/Samples/ExpressionParser/ExpressionParser.cabal Tue Aug 11 13:08:42 2009 +++ /trunk/hoc/Samples/ExpressionParser/ExpressionParser.cabal Tue Aug 11 13:36:24 2009 @@ -6,3 +6,6 @@ executable: ExpressionParser main-is: Main.hs build-depends: base, HOC, HOC-Cocoa, HOC-Foundation, HOC-AppKit, parsec >= 3.0 + +-- reduce executable size by *a lot*: +ghc-options: -optl-Wl,-dead_strip ======================================= --- /trunk/hoc/Samples/UniqSort/UniqSort.cabal Tue Aug 11 13:08:42 2009 +++ /trunk/hoc/Samples/UniqSort/UniqSort.cabal Tue Aug 11 13:36:24 2009 @@ -6,3 +6,6 @@ executable: UniqSort main-is: UniqSort.hs build-depends: base, HOC, HOC-Foundation + +-- reduce executable size by *a lot*: +ghc-options: -optl-Wl,-dead_strip |