]> git.ipfire.org Git - thirdparty/libtool.git/commit
libtool.m4: Cleanup sysroot trailing "/"
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 17 Jan 2024 12:39:22 +0000 (12:39 +0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 17 Jan 2024 22:01:45 +0000 (17:01 -0500)
commit365805327c7b9bbdb0e622b954b6b0d8eaeb3f99
treea78f26d57bd3c91e9aafc7490d53bf0223399fad
parentcdf4bf702f11d17e06569936e8a433a77f791228
libtool.m4: Cleanup sysroot trailing "/"

If $CC has --sysroot=/, it is a valid configuration however libtool will
then set lt_sysroot to "/".

This means references like $lt_sysroot$libdir become //usr/lib instead
of the more normally expected /usr/lib. This may or may not break something
but certainly is confusing to the user and gives confusing output. Making
"/" simply unset lt_sysroot is much cleaner.

Whilst here, trim any trailing '/' from sysroot paths to drop the duplication
and result in cleaner/consistent output.

* m4/libtool.m4: Cleanup sysroot trailing '/' handling.
m4/libtool.m4