How to pass -dynamic-too when compiling plugins
- Dominant language
- Haskell
- Stars
- 2.3k
- Forks
- 231
- PR merge metrics
- No merged PRs in 30d
Description
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: : fatal:
cannot find object file `plugins/ImgTex.dyn_o'
while linking an interpreted expression
```
Is there anyway I can pass the `-dynamic-too` parameter?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with plugins/ImgTex.hs and the configuration or entry point that compiles and loads wiki plugins. Reproduce the missing plugins/ImgTex.dyn_o error and trace how compiler options are passed. Done means a configured plugin can be compiled with -dynamic-too and loaded without the missing object-file error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- backend, build-system
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100