Skip to content

RPATH fixes: libtool & binutils

Andy Ross openembedded-core 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2libtool: update rpath normalization to use builtinmeta/recipes-devtools/libtool/libtool-2.4.2.inc meta/recipes-devtools/libtool/libtool/norm-rpath.patch+9 -150 replies
2/2ld: -rpath must search under sysrootmeta/recipes-devtools/binutils/binutils-2.22.inc meta/recipes-devtools/binutils/binutils/rpath-sysroot.patch+40 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] RPATH fixes: libtool & binutils

Current RPATH work:

Patch 1 just updates the libtool work to use the built-in normalization function instead of sed, as requested.

Patch 2 is to binutils ld, to fix the underlying host pollution issue:
the -rpath argument was not sysroot aware, so setting "/usr/lib/../lib" as an RPATH would add the host /usr/lib to the link time search path instead of the sysroot directory.

Note that the previous warning fix to insane.bbclass is still producing unmasked warnings in a few cases (the rpm utilities are one that I know), mostly in programs instead of libraries. These will need to be audited independently. It's possible that they are liking with -rpath directly and not using libtool, or that a needed normalization in libtool is still missing. But with the current patches these warnings are benign now, they can't break the build.

Andy