mainAutoconf - Support: sr #110537, AC_SEARCH_LIBS does not honor...


sr #110537: AC_SEARCH_LIBS does not honor --with-sysroot=

Submitter:  None
Submitted:  Thu 09 Sep 2021 04:46:10 PM UTC
Category:  None Priority:  5 - Normal
Severity:  4 - Important Status:  None
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup

Sun 12 Jun 2022 06:04:56 PM UTC, comment #3: 
Eric Gallager <egallager>
Fri 10 Sep 2021 07:59:38 AM UTC, comment #2: 

Indeed, and it has also been documented to cause (as expected) the same issue in another project, gdal here:

Fri 10 Sep 2021 01:34:07 AM UTC, comment #1: 

Seems to have been reported as downstream.

Sam James <thesamesam>
Thu 09 Sep 2021 04:46:10 PM UTC, original submission:  

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



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by egallager (Posted a comment)
  • -email is unavailable- added by ctk (Posted a comment)
  • -email is unavailable- added by thesamesam (Posted a comment)
  • -email is unavailable- added by thesamesam
  • -email is unavailable- added by thesamesam
  • -email is unavailable- added by None (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-09-10 thesamesam Carbon-Copy- Added -email is unavailable-
        Carbon-Copy- Added thesamesam

    Back to the top

    Powered by Savane 3.12