Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
P
pkg-config
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 56
    • Issues 56
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 7
    • Merge Requests 7
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pkg-config
  • pkg-config
  • Issues
  • #52

Closed
Open
Opened Mar 25, 2020 by Heiko Lewin@hlewin

PKG_CONFIG_SYSROOT_DIR and pcfiledir

I've noticed a difference in behaviour when compared to pkgconf (https://github.com/pkgconf/pkgconf)

Given a .pc-file like

❯ cat /home/git/android-native/root/linux/lib/pkgconfig/wdyGrendel.pc prefix=${pcfiledir}/../.. ...

when called with a PKG_CONFIG_SYSROOT_DIR environment-variable, pkg-config adds the sysroot-prefix to to the pcfiledir, while pkgconf does not:

PKG_CONFIG_SYSROOT_DIR=/home/git/android-native/root/linux PKG_CONFIG_LIBDIR=/home/git/android-native/root/linux/lib/pkgconfig ./pkg-config --cflags wdyGrendel

-I/home/git/android-native/root/linux/home/git/android-native/root/linux/lib/pkgconfig/../../include

PKG_CONFIG_SYSROOT_DIR=/home/git/android-native/root/linux PKG_CONFIG_LIBDIR=/home/git/android-native/root/linux/lib/pkgconfig pkgconf --cflags wdyGrendel

-I/home/git/android-native/root/linux/lib/pkgconfig/../../include

Who is right?

Edited Mar 25, 2020 by Heiko Lewin
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: pkg-config/pkg-config#52