-
Notifications
You must be signed in to change notification settings - Fork 724
Open
Labels
needs triagere: ghc-optionsConcerning passing options to GHCConcerning passing options to GHCre: pkg-configConcerning pkg-config and pkgconfig-depends constraintsConcerning pkg-config and pkgconfig-depends constraintstype: bug
Description
Describe the bug
When building a foreign-library with c-sources and pkgconfig-depends, Cabal 3.14.1 (with GHC 9.10.1) fails to propagate the pkg-config CFLAGS (-I/...) to the C compiler invocation.
I'm trying to use glib, and as a result, C code that includes <glib.h> / <gobject.h> etc fails to build, even though the same pkgconfig-depends works correctly for library and executable components.
To Reproduce
Make a cabal file with a foreign-library that uses a pkgconfig-depends library. Note that when running with --verbose, the files fail to build.
$ cabal build ...
Expected behavior
I would expect it to be the same as with library.
System information
- Operating system: NixOS 24.05
cabal: 3.14ghc: 9.10.1
Additional context
Metadata
Metadata
Assignees
Labels
needs triagere: ghc-optionsConcerning passing options to GHCConcerning passing options to GHCre: pkg-configConcerning pkg-config and pkgconfig-depends constraintsConcerning pkg-config and pkgconfig-depends constraintstype: bug