-
Notifications
You must be signed in to change notification settings - Fork 711
executable-dynamic: True
should apply to build-type: Custom
setup
#1720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I use This workaround is problematic if you build static libraries in a sandbox (for example profiling libraries) , the ghc-options are propagated and can't be cleared. |
Perhaps there should be an extra option like |
There is another facet of this issue: If ghc is built without static (aka vanilla) libraries, then even the default |
FWIW this does affect Arch Linux now, because the default packages don't come with static libs anymore. |
JFYI
A more self-contained example fails with a different error, and it should also fail with "normal" GHC if vanilla is disabled: Setup.hs import Distribution.Simple
import Acme.Missiles
main = defaultMain foo.cabal: name: foo
version: 0.1.0.0
synopsis: foo
description: bar
homepage: https://github.com/githubuser/foo#readme
license: BSD3
license-file: LICENSE
author: Author name here
maintainer: [email protected]
copyright: 2017 Author name here
category: Web
build-type: Custom
extra-source-files: README.md
cabal-version: >=1.24
custom-setup
setup-depends: base <5, Cabal <2, acme-missiles <1
executable foo-exe
hs-source-dirs: app
main-is: Main.hs
build-depends: base <5
default-language: Haskell2010 The error is:
|
Just to expand on @Piezoid's comment, using |
I have a Haskell installation with only shared libraries, and cabal's config contains:
This fails for packages with
build-type: Custom
, because cabal-install tries to linksetup
against non-existent static libraries.The text was updated successfully, but these errors were encountered: