Request for help with shared object link failure, involving relocation and -fPIC.

25 Apr
2013
25 Apr
'13
12:19 a.m.
Can anyone help me solve this link failure? ghc -o libami.so -shared -package parsec -lHSrts -lm -lffi -lrt AMIParse.o AMIModel.o ami_model.o ExmplUsrModel.o Filter.o /usr/bin/ld: /usr/lib/ghc-7.4.2/libHSrts.a(RtsAPI.o): relocation R_X86_64_32S against `ghczmprim_GHCziTypes_Czh_con_info' can not be used when making a shared object; recompile with -fPIC /usr/lib/ghc-7.4.2/libHSrts.a: could not read symbols: Bad value collect2: error: ld returned 1 exit status Thanks! -db
4458
Age (days ago)
4458
Last active (days ago)
0 comments
1 participants
participants (1)
-
Captain Freako