jgm / gitit

A wiki using HAppS, pandoc, and git
GNU General Public License v2.0
2.15k stars 225 forks source link

How to pass -dynamic-too when compiling plugins #635

Open zhichu opened 5 years ago

zhichu commented 5 years ago

I copy plugins/ImgTex.hs to my wiki directory and add it to the plugins in my config file. It does not compile and complains about some type mismatch.

I added a blank Attr (("",[],[("","")])) after Image and it can compile now, but interestingly, it only generates ImgTex.hs and ImgTex.o files. gitit needs to load ImgTex.dyn_o so I got:

Loading plugin `plugins/ImgTex.hs'...
gitit: <interactive>: fatal:
    cannot find object file `plugins/ImgTex.dyn_o'
    while linking an interpreted expression

Is there anyway I can pass the -dynamic-too parameter?