[xmonad] darcs patch: strip generated binary

Gwern Branwen gwern0 at gmail.com
Thu Feb 5 11:24:05 EST 2009


On Thu, Feb 5, 2009 at 10:43 AM, Brandon S. Allbery KF8NH
<allbery at ece.cmu.edu> wrote:
> On 2009 Feb 4, at 20:39, Gwern Branwen wrote:
>>
>> On Wed, Feb 4, 2009 at 7:51 PM, Don Stewart <dons at galois.com> wrote:
>>>
>>> How portable?
>>
>> By a funny coincidence, I was messing with strip a few days ago (for
>> yi), and my discussion with dcoutts covered just this.
>>
>> He told me that -optl-s was considered bad, as that option gets passed
>> to the linker and -s is apparently specific to GNU ld.
>
> Er?  ld -s has worked since Version 7 UNIX.  Or is this about e.g.
> Cygwin/mingw not implementing it?
>
> --
> brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com

http://tunes.org/~nef/logs/haskell/09.02.01

06:55:03 <gwern> dcoutts: so I was looking into having yi strip its
recompiled binaries
06:55:09 <gwern> and I couldn't remember the ghc option for that
06:55:30 <gwern> was it -optl-s?
06:55:34 --- quit: zachk ("http://www.mibbit.com ajax IRC Client")
06:55:43 <dcoutts> gwern: that is not portable
06:55:51 <dcoutts> gwern: just calling strip is more portable
06:56:08 <gwern> hm. where is -optl-s not portable?
06:57:15 --- join: Workybo__ (n=workybob at d5153048F.access.telenet.be)
joined #haskell
06:57:20 <gwern> (since yi goes from 30M to 19M, I do intend some sort
of stripping)
06:58:54 <Olathe> Bah.
06:59:08 --- quit: dmwit_ (Read error: 54 (Connection reset by peer))
06:59:20 <Olathe> return Constructor a b c causes all sorts of unrelated errors.
06:59:34 --- quit: Workybob (Connection timed out)
06:59:38 --- join: vixey` (n=vicky at amcant.demon.co.uk) joined #haskell
06:59:39 --- quit: jinjing ()
06:59:39 --- quit: vixey` (Read error: 104 (Connection reset by peer))
07:00:00 --- join: dmwit (n=dmwit at c-76-99-55-17.hsd1.pa.comcast.net)
joined #haskell
07:00:04 <gwern> @hoogle runProcess
07:00:04 <PeakerLambda> System.Process runProcess :: FilePath ->
[String] -> Maybe FilePath -> Maybe [(String, String)] -> Maybe Handle
-> Maybe Handle -> Maybe Handle -> IO ProcessHandle
07:00:17 --- quit: vixey (Read error: 113 (No route to host))
07:00:58 --- join: vixey (n=vicky at amcant.demon.co.uk) joined #haskell
07:01:23 --- quit: Workybob_ (Connection timed out)
07:01:29 <draco_> hm, why isn't ghc available from cabal? ("cabal ghc")
07:01:38 <dcoutts> heh
07:01:46 <dcoutts> draco_: ghc is very complex to build
07:01:53 <draco_> ok
07:02:19 <dcoutts> gwern: -s is specific to the GNU linker I think. So
probably does not work on OSX, BSD, Solaris.
07:02:48 <dcoutts> gwern: strip works everywhere that you can find the
strip program.

-- 
gwern


More information about the xmonad mailing list