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
_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to