porting to uClibc-based 686 Linux

Ian Lynagh ian at well-typed.com
Thu Apr 18 00:18:52 CEST 2013


On Fri, Apr 05, 2013 at 11:12:38PM -0400, Dubiousjim wrote:
>     target$ inplace/bin/ghc-stage2 -o hello-cross hello.hs
>     [1 of 1] Compiling Main             ( hello.hs, hello.o )
>     Linking hello-cross ...
>     target$ ./hello-cross
>     Can't modify application's text section; use the GCC option -fPIE
>     for position-independent executables.

You can pass -fPIE to gcc by using the -optc-fPIE flag.


Thanks
Ian




More information about the Glasgow-haskell-users mailing list