How to directly strip ghc generated binaries

Sometimes it's annoying to call strip --strip-all <program name> everytime after compilation. Is there anything like gcc's -s so that debugging symbols aren't included? -- View this message in context: http://www.nabble.com/How-to-directly-strip-ghc-generated-binaries-tp1948705... Sent from the Haskell - Glasgow-haskell-users mailing list archive at Nabble.com.

leledumbo_cool:
Sometimes it's annoying to call strip --strip-all <program name> everytime after compilation. Is there anything like gcc's -s so that debugging symbols aren't included?
Use cabal to build your application. It strips the applications for you, in a portable manner.

Don Stewart-2 wrote:
Use cabal to build your application. It strips the applications for you, in a portable manner.
Even if it's only a single module program? That's far too complicated! -- View this message in context: http://www.nabble.com/How-to-directly-strip-ghc-generated-binaries-tp1948705... Sent from the Haskell - Glasgow-haskell-users mailing list archive at Nabble.com.

leledumbo_cool:
Don Stewart-2 wrote:
Use cabal to build your application. It strips the applications for you, in a portable manner.
Even if it's only a single module program? That's far too complicated!
It depends on if you want to deploy the code, and if you want to do it portably. Since you're stripping, I guess you do want to deploy. So for that you need a build system. Here, an example. A single module program, that uses cabal. http://code.haskell.org/~dons/code/rss2irc/ As a result, it can be widely distributed from hackage, or natively packaged, or what not. Cabal is easy. -- Don

Hello leledumbo, Monday, September 15, 2008, 8:11:54 AM, you wrote:
Sometimes it's annoying to call strip --strip-all <program name> everytime after compilation. Is there anything like gcc's -s so that debugging symbols aren't included?
ghc -optl-s -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com
participants (3)
-
Bulat Ziganshin
-
Don Stewart
-
leledumbo