-
Notifications
You must be signed in to change notification settings - Fork 282
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
Ogg M4 script ignores sysroot setting #89
Comments
Things like I don't really think there is anything here that needs fixing. |
Really? It doesn't really feel elegant, as specifying --with-sysroot should usually provide enough data to correctly find all dependencies while cross compiling (unless Ogg has been installed to non-standard location, but that can happen without cross compiling as well). Repeating the path manually for each dependency (in this case just one, but you get the point :P) seems redundant. |
Well patch accepted. |
I would guess this is not the case with CMake? |
Sorry, wat? That question is highly ambiguous. Care to clarify? |
@rillian Should this issue be transferred to the ogg repository? It might be other projects depending on libogg are affected? |
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"
withOGG_LIBS="-L$sysroot/$prefix/lib"
might be enough.A workaround is to specify path manually using
--with-ogg
.The text was updated successfully, but these errors were encountered: