[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 05/12] libtool.m4: Rename the --with-sysroot option to avoid c
From: |
Sam James |
Subject: |
[PATCH v2 05/12] libtool.m4: Rename the --with-sysroot option to avoid conflict with gcc/binutils |
Date: |
Sat, 16 Apr 2022 18:58:18 +0100 |
From: Khem Raj <raj.khem@gmail.com>
This patch renames the --with-sysroot option to --with-libtool-sysroot
to avoid namespace conflict with binutils, gcc and other toolchain
components since these componets also add that option to configure
and this becomes confusing and conflicting otherwise.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
m4/libtool.m4 | 12 ++++++------
tests/sysroot.at | 6 +++---
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 717e7697..d89a892f 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -1243,28 +1243,28 @@ _LT_DECL([], [ECHO], [1], [An echo program that
protects backslashes])
AC_DEFUN([_LT_WITH_SYSROOT],
[m4_require([_LT_DECL_SED])dnl
AC_MSG_CHECKING([for sysroot])
-AC_ARG_WITH([sysroot],
-[AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
+AC_ARG_WITH([libtool-sysroot],
+[AS_HELP_STRING([--with-libtool-sysroot@<:@=DIR@:>@],
[Search for dependent libraries within DIR (or the compiler's sysroot
if not specified).])],
-[], [with_sysroot=no])
+[], [with_libtool_sysroot=no])
dnl lt_sysroot will always be passed unquoted. We quote it here
dnl in case the user passed a directory name.
lt_sysroot=
-case $with_sysroot in #(
+case $with_libtool_sysroot in #(
yes)
if test yes = "$GCC"; then
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
fi
;; #(
/*)
- lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
+ lt_sysroot=`echo "$with_libtool_sysroot" | $SED -e "$sed_quote_subst"`
;; #(
no|'')
;; #(
*)
- AC_MSG_RESULT([$with_sysroot])
+ AC_MSG_RESULT([$with_libtool_sysroot])
AC_MSG_ERROR([The sysroot must be an absolute path.])
;;
esac
diff --git a/tests/sysroot.at b/tests/sysroot.at
index 540edde9..47fce0c2 100644
--- a/tests/sysroot.at
+++ b/tests/sysroot.at
@@ -65,7 +65,7 @@ while read file; do
done])
LDFLAGS="$LDFLAGS --sysroot=$sysroot -no-undefined"
-configure_options="$configure_options --with-sysroot=$sysroot --prefix=$prefix"
+configure_options="$configure_options --with-libtool-sysroot=$sysroot
--prefix=$prefix"
#???
if test PATH = "$shlibpath_var"; then
@@ -115,7 +115,7 @@ AM_INIT_AUTOMAKE([foreign])
AC_PROG_CC
AC_CONFIG_SRCDIR([lib2.c])
LT_INIT
-sysroot=$with_sysroot
+sysroot=$with_libtool_sysroot
AC_SUBST([sysroot])
AC_OUTPUT(Makefile)
]])
@@ -156,7 +156,7 @@ AM_INIT_AUTOMAKE([foreign])
AC_PROG_CC
AC_CONFIG_SRCDIR([prog.c])
LT_INIT
-sysroot=$with_sysroot
+sysroot=$with_libtool_sysroot
AC_SUBST([sysroot])
AC_OUTPUT(Makefile)
]])
--
2.35.1
- [PATCH v2 00/12] Rebased version of Yocto patches, Sam James, 2022/04/16
- [PATCH v2 02/12] ltmain.in: Handle trailing slashes on install commands correctly, Sam James, 2022/04/16
- [PATCH v2 04/12] ltmain.in: Don't encode RATHS which match default linker paths, Sam James, 2022/04/16
- [PATCH v2 03/12] libtool.m4: For reproducibility stop encoding hostname in libtool script, Sam James, 2022/04/16
- [PATCH v2 05/12] libtool.m4: Rename the --with-sysroot option to avoid conflict with gcc/binutils,
Sam James <=
- [PATCH v2 07/12] libtool: Check for static libs for internal compiler libraries, Sam James, 2022/04/16
- [PATCH v2 11/12] Makefile.am: make sure autoheader run before automake, Sam James, 2022/04/16
- [PATCH v2 06/12] Makefile.am: make sure autoheader run before autoconf, Sam James, 2022/04/16
- [PATCH v2 12/12] libtool: Fix support for NIOS2 processor, Sam James, 2022/04/16
- [PATCH v2 08/12] ltmain.in: Add missing sysroot to library path, Sam James, 2022/04/16
- [PATCH v2 10/12] ltmain.in: Handle prefix-map compiler options correctly, Sam James, 2022/04/16
- [PATCH v2 09/12] libtool.m4: Handle "/" as a sysroot correctly, Sam James, 2022/04/16
- Re: [PATCH v2 00/12] Rebased version of Yocto patches, Alex Ameen, 2022/04/16