I'm using a crosstool-ng toolchain which adheres to the ld.so ABI path
for x86_64 (glibc).

Afaiu, ptxdist does not like multilib.
But it will happily get the dynamic-linker path which contain a multilib
description or just a regular lib64 path.

https://git.pengutronix.de/cgit/ptxdist/tree/scripts/lib/ptxd_make_00-init.sh#n169

This might be a symbolic link to the real dynamic linker, because a
demultilibbed toolchain must still adhere to the ABI specifications.
For x86_64: 64-bit, hard-float, LE: /lib64/ld-linux-x86-64.so.2

So ptxdist will use lib64 as it's base for libdirs placing various
libraries in a lib64 path.

But when using the pkg-config-wrapper it looks like all libraries are
only statically set from a something /lib path.

https://git.pengutronix.de/cgit/ptxdist/tree/scripts/pkg-config-wrapper#n19

So building a library yields:
$ ls -la platform-tracker/sysroot-target/usr/lib64/libmnl.so*
lrwxrwxrwx 2 xxx users    15 Apr 22 21:01
platform-tracker/sysroot-target/usr/lib64/libmnl.so -> libmnl.so.0.2.0*
lrwxrwxrwx 2 xxx users    15 Apr 22 21:01
platform-tracker/sysroot-target/usr/lib64/libmnl.so.0 -> libmnl.so.0.2.0*
-rwxr-xr-x 2 xxx users 77216 Apr 22 21:01
platform-tracker/sysroot-target/usr/lib64/libmnl.so.0.2.0*

$ ls -la platform-tracker/sysroot-target/usr/lib64/pkgconfig/libmnl.pc
-rw-r--r-- 2 xxx users 318 Apr 22 21:01
platform-tracker/sysroot-target/usr/lib64/pkgconfig/libmnl.pc

In the search for the library:
PKG_CONFIG_DEBUG_SPEW variable enabling debug spew
Adding directory
'/home/xxx/work/tracker/bin/platform-tracker/sysroot-target/usr/lib/pkgconfig'
from PKG_CONFIG_PATH
Adding directory
'/home/xxx/work/tracker/bin/platform-tracker/sysroot-target/usr/share/pkgconfig'
from PKG_CONFIG_PATH
Global variable definition 'pc_sysrootdir' = '/'
Global variable definition 'pc_top_builddir' = '$(top_builddir)'
Error printing enabled by default due to use of output options besides
--exists, --atleast/exact/max-version or --list-all. Value of
--silence-errors: 0
Error printing enabled
Adding virtual 'pkg-config' package to list of known packages
Looking for package 'libmnl'
Looking for package 'libmnl-uninstalled'
No package 'libmnl' found

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de

Reply via email to