ghc 6.6.1 -optl bug?

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-#) -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com

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

Hello Christian, Friday, January 11, 2008, 4:10:36 PM, you wrote:
Does adding -optl-Xlinker help you?
ghc --make Hello.hs -fforce-recomp -optl-Xlinker -optl--strip-all
thank you - it works! -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com
participants (2)
-
Bulat Ziganshin
-
Christian Maeder