arm-linux-gnueabihf-pkg-config does not work with sysroots installed by `ade`
Images versions
apertis-17.06-sdk-amd64-uefi_20170412.0
Steps to reproduce
ade sysroot install
arm-linux-gnueabihf-pkg-config --cflags freetype2
Expected result
-I/opt/sysroot/apertis/17.03/armhf/usr/include/freetype2 -I/opt/sysroot/apertis/17.03/armhf/usr/include/libpng12
Actual result
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found
Impact of bug
Minor impact, only manual cross-building using arm-linux-gnueabihf-pkg-config
is affected.
The ade
tool is not affected because it calls pkg-config
directly, setting up the env vars on its own.
A possible solution would be to provide an ade pkg-config
that use the existing mechanisms to choose the sysroot used by the other ade
subcommands, and have arm-linux-gnueabihf-pkg-config
be a wrapper around it, for the projects that cannot use ade configure
because they don't use autotools (eg. cmake).
Attachments
None
Management data
This section is for management only, it should be the last one in the description.
Phabricator link: https://phabricator.apertis.org/T3920