ghc 6.6.1 -optl bug?

Christian Maeder Christian.Maeder at dfki.de
Fri Jan 11 08:10:36 EST 2008


Bulat Ziganshin wrote:
> Hello GHC,
> 
> sorry, i'm still user of 6.6.1 version
> 
> the following command: ghc --make .... -optl-s
> 
> strips the executable while the following command
> 
> ghc --make .... -optl--strip-all
> 
> has no effect. i made some experiments and it seems that options
> starting with "--" are not sent to ld at all (you can write
> -optl--unexisting-option but not -optl-#)

Does adding -optl-Xlinker help you?

ghc --make Hello.hs -fforce-recomp -optl-Xlinker -optl--strip-all
[1 of 1] Compiling Main             ( Hello.hs, Hello.o )
Linking Hello ...
/usr/bin/ld: unknown flag: --strip-all
collect2: ld returned 1 exit status

(I've use version 6.8.2 though)

Christian


More information about the Glasgow-haskell-users mailing list