From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 23 Apr 2021 09:39:47 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1lZqPj-0005SE-It for lore@lore.pengutronix.de; Fri, 23 Apr 2021 09:39:47 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1lZqPj-0004kq-5i; Fri, 23 Apr 2021 09:39:47 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lZqPH-0004ka-2Y for ptxdist@pengutronix.de; Fri, 23 Apr 2021 09:39:19 +0200 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1lZqPG-0000xY-Iz for ptxdist@pengutronix.de; Fri, 23 Apr 2021 09:39:18 +0200 Received: from mol by dude03.red.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lZqPG-007Twi-I4 for ptxdist@pengutronix.de; Fri, 23 Apr 2021 09:39:18 +0200 Date: Fri, 23 Apr 2021 09:39:18 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Message-ID: <20210423073918.GG4162561@pengutronix.de> Mail-Followup-To: ptxdist@pengutronix.de References: <30a9fa38-3276-c5dc-c36b-51f02483ed0f@t2data.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <30a9fa38-3276-c5dc-c36b-51f02483ed0f@t2data.com> User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [ptxdist] pkg-config-wrapper libdir confusion, ABI dynamic-linker path. X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false On Thu, Apr 22, 2021 at 09:59:06PM +0200, Christian Melki wrote: > 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. Right, that was contributed a long time ago. But since I don't have a test-case for this, the support for this has not been maintained. > 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 Right, and here it get's ugly. I don't want to rely on some external environment variable here. Maybe just search for the paths: libdir=( $(find ${prefix} -maxdepth 3 -type d -name pkgconfig ) Would care to provide a patch for this? Michael > 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-request@pengutronix.de > _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de