haskell / haskell/cabal

`executable-dynamic: True` should apply to `build-type: Custom` setup

Open
#1,720 6 comments 3 reactions 0 assignees View on GitHub
attention: pr-welcome Cabal: file format Cabal: other good first issue type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

I have a Haskell installation with only shared libraries, and cabal's config contains:

```
library-vanilla: False
library-profiling: False
shared: True
executable-dynamic: True
```

This fails for packages with `build-type: Custom`, because cabal-install tries to link `setup` against non-existent static libraries.

Contributor guide

Open the contributing guide

Research direction

Start by tracing cabal-install's handling of packages with build-type: Custom and the setup executable when only shared libraries are configured. Reproduce the failure with the reported library-vanilla, library-profiling, shared, and executable-dynamic settings; done means setup links successfully without requiring unavailable static libraries.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.