jgm / jgm/gitit

How to pass -dynamic-too when compiling plugins

Open
#635 0 comments 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.