Ogg M4 script ignores sysroot setting
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 2.4k
- Forks
- 363
- PR merge metrics
- No merged PRs in 30d
Description
When cross-compiling and invoking configure with parameters like --with-sysroot=/foo --prefix=/usr, FLAC finds libogg installed in host's /usr, adding it to include path and wreaking havok.
Looking into ogg.m4, it seems like while $prefix is one of the places being checked, it doesn't include the sysroot at all. I don't know much about autotools, but replacing things like OGG_LIBS="-L$prefix/lib" with OGG_LIBS="-L$sysroot/$prefix/lib" might be enough.
A workaround is to specify path manually using --with-ogg.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading ogg.m4 and the configure checks used for libogg, then reproduce the cross-compilation case with --with-sysroot=/foo and --prefix=/usr. Compare the generated include and library paths with the sysroot setting; done means host /usr is not selected when the sysroot is provided, while the --with-ogg workaround remains unnecessary.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100