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
   
 
Priority:  * 1 - Blocked Severity:  4 - Important
Status:  Need Info Privacy:  Public
Assigned to:  None Originator Email:  -email is unavailable-
Open/Closed:  Open Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 08 Dec 2023 01:33:39 AM UTC, comment #4: 

Autoconf doesn't have generic support for --with-sysroot.  Like all --with and --enable options, if you pass it to a configure script that doesn't define what it does using AC_ARG_WITH, it's just ignored.

In order to add a generic --with-sysroot option, we would first need to work out a detailed spec for what it should do, and a plan for how to add it without stepping on the toes of configure scripts that do already have an AC_ARG_WITH([sysroot], ...).  Someone other than me needs to lead that design discussion; I don't have the time nor do I have any relevant experience.

This is definitely not going to happen for 2.72.

Zack Weinberg <zackw>
Group administrator
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: https://github.com/OSGeo/gdal/issues/531

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

Seems to have been reported as https://bugs.gentoo.org/812251 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

Anonymous

 

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

Attach Files:
   
   
Comment:
   

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 zackw (Posted a comment)
  • -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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-12-08 zackw Priority2 - Eventually 1 - Blocked
    2023-12-08 zackw StatusNone Need Info
    2023-12-08 zackw Priority5 - Unprioritized 2 - Eventually
    2021-09-10 thesamesam Carbon-Copy- Added -email is unavailable-
        Carbon-Copy- Added thesamesam

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code