Use pkgconfig-depends to link to system yaml
Upstream provides .pc files.
commitd0416d97deb9fde79ce171a4fd88db564ed6a7fe
authorJulian Ospald <hasufell@posteo.de>
dateWed 13 Mar 2024, 17:45 (3 years ago)
parent8d69bbb
libyaml/libyaml.cabal+3−5
@@ -1,10 +1,8 @@
11cabal-version: 1.12
22
3−-- This file has been generated from package.yaml by hpack version 0.35.1.
3+-- This file has been generated from package.yaml by hpack version 0.36.0.
44--
55-- see: https://github.com/sol/hpack
6−--
7−-- hash: a4a2ff005241200ba50deeae68beae02301af696425274c2ed0c3cb59b07d0ac
86
97name: libyaml
108version: 0.1.3
@@ -74,8 +72,8 @@ library
7472 libyaml_src/scanner.c
7573 libyaml_src/writer.c
7674 else
77− extra-libraries:
78− yaml
75+ pkgconfig-depends:
76+ yaml-0.1
7977 if os(windows)
8078 cpp-options: -DWINDOWS
8179 build-depends:
libyaml/package.yaml+2−1
@@ -56,7 +56,8 @@ library:
5656 include-dirs:
5757 - libyaml_src
5858 else:
59− extra-libraries: yaml
59+ pkg-config-dependencies:
60+ - yaml-0.1
6061 - condition: os(windows)
6162 cpp-options: -DWINDOWS
6263 dependencies: