Browse Source

pkgconfig: Use predefined variables in Libs and Cflags

This fixes path relocation in mingw environment. Without this,
libdir and includedir are not shown in pkgconfig output. e.g.
* Without predefined variables:
  - pkgconf -cflags jack: No output
  - pkgconf -libs jack: -ljack64
* With predefined variables:
  - pkgconf -cflags jack: -IC:/msys64/mingw64/include
  - pkgconf -libs jack: -LC:/msys64/mingw64/lib -ljack64

Also official documentation suggests to use variables
https://people.freedesktop.org/~dbn/pkg-config-guide.html
tags/v1.9.21
Biswapriyo Nath Filipe Coelho <falktx@falktx.com> 1 year ago
parent
commit
3a5e040155
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      jack.pc.in

+ 2
- 2
jack.pc.in View File

@@ -8,5 +8,5 @@ jack_implementation=jack2
Name: jack
Description: the Jack Audio Connection Kit: a low-latency synchronous callback-based media server
Version: @JACK_VERSION@
Libs: -L@LIBDIR@ -l@CLIENTLIB@
Cflags: -I@INCLUDEDIR@
Libs: -L${libdir} -l@CLIENTLIB@
Cflags: -I${includedir}

Loading…
Cancel
Save