]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
linuxloader: add -armhf on arm only for TARGET_FPU 'hard'
authorJonas Gorski <jonas.gorski@bisdn.de>
Wed, 5 Jun 2024 07:26:29 +0000 (09:26 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Jun 2024 10:41:09 +0000 (11:41 +0100)
commit07b4c7a2bd23f8645810e13439e814caaaf9cd94
treebe7458d01e022030f85eb704409e565ebaaac0c6
parentb1f522cd659af375828a61de1d0c06ad62398983
linuxloader: add -armhf on arm only for TARGET_FPU 'hard'

There are two types of soft FPU options for arm, soft and softfp, and if
using the latter the wrong dynamic loader will be used.

E.g. go will link against ld-linux-armhf.so.3, but libc6 will only ship
a ld-linux.so.3, so go programs will fail to start.

Fix this by instead checking for TARGET_FPU being 'hard' and then
applying the suffix.

Signed-off-by: Jonas Gorski <jonas.gorski@bisdn.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/linuxloader.bbclass