Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autotools configure script doesn't honour --with-sysroot directive when locating external driver libraries #531

Closed
RichardLangFromNZ opened this issue Apr 28, 2018 · 2 comments

Comments

@RichardLangFromNZ
Copy link

Unless a specific location for an optional driver/package/library has been specified, configure script searches from the build platform root, even when a --with-sysroot directive has been supplied, and on finding it potentially drags build platform include paths into the build configuration.

Cross-compiling with a custom sysroot, I'm not only having to specify the sysroot with a --with-sysroot=/foo/bar directive, but having to repeat myself on every optional package inclusion directive --with-sqlite3=/foo/bar

@metux
Copy link
Contributor

metux commented Feb 13, 2020

Yore're right: the configure.ac is in no way capable of doing clean cross compile.
It has almost a hundred places of harcoded includes to the host (grep for /usr), which need to be refactored for sysroot support.
In fact, those places should go the standard and clean way - pkg-config - instead of hand crafted guessing. (I've fixed that for a few cases, but lots of more missing yet)

@rouault
Copy link
Member

rouault commented Nov 2, 2021

Improvements to autotools build systems will no longer be considered now that we are developing a cmake build system that will eventually replace it

@rouault rouault closed this as completed Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants