[sr #110537] AC_SEARCH_LIBS does not honor --with-sysroot=

anonyme <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.bugs
Message-ID <[email protected]>
URL:
  <https://savannah.gnu.org/support/?110537>

                 Summary: AC_SEARCH_LIBS does not honor --with-sysroot=
                 Project: Autoconf
            Submitted by: None
            Submitted on: jeu. 09 sept. 2021 16:46:10 UTC
                Category: None
                Priority: 5 - Normal
                Severity: 4 - Important
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: [email protected]
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: None

    _______________________________________________________

Details:

AC_SEARCH_LIBS in configure searches for libraries in the current system even
when --with-sysroot=/some/chroot/ is specified.

This is blocking cross-compilation of all software using autoconf and calling
AC_SEARCH_LIBS in configure.

Adding --sysroot=/some/chroot/ to CFLAGS and CXXFLAGS when running ./configure
clumsily circumvents the issue, as one would expect.

It comes to mind that quite possibly, AC_SEARCH_LIBS is not the only function
affected.

P.S.: bug discovered attempting to cross-compile libbsd 0.11.3




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/support/?110537>

_______________________________________________
  Message posté via Savannah
  https://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.