Skip to content

pkg-config does not honour PKG_CONFIG_PATH variable #437

Description

@mardy

Bug Report

What's the issue you encountered?

The devkitPPC pkg-config program cannot find .pc files installed outside of /opt/devkitpro/portlibs/wii/lib/pkgconfig/, even if the PKG_CONFIG_PATH variable is properly set to these extra paths.

How can the issue be reproduced?

Create a mylib.pc file inside a cmake-base project, and in cmake do

set(ENV{PKG_CONFIG_PATH} "${CMAKE_CURRENT_SOURCE_DIR}:$ENV{PKG_CONFIG_PATH}")
find_package(PkgConfig)
pkg_check_modules(MYLIB IMPORTED_TARGET mylib)

Additional context?

The reason why this doesn't work is

export PKG_CONFIG_PATH=

One workaround could be changing that line to

export PKG_CONFIG_PATH=$DEVKITPRO_PKG_CONFIG_PATH

So, by specifying DEVKITPRO_PKG_CONFIG_PATH one could add more search paths to pkg-config (and by not using this variable, the behaviour would remain exactly the same as now).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions