Skip to content

Add support for "local" sub-directory of sysroot #13769

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Mar 25, 2021

Automatically add sysroot/local/include and sysroot/local/lib to the
include and library path.

Also, use this new local subdirectory by default in emscripten by
passing --prefix=<sysroot>/local. This should make emconfigure + make install work out of the box.

Also, add sysroot/lib to the library path which allows libraries
installed via ./configure --prefix=<sysroot> and then make install
to be found automatically.

Fixes: #13753

@@ -319,6 +319,10 @@ def configure(args, stdout=None, stderr=None, env=None, cflags=[], **kwargs):
# compilation with emcc, but instead do builds natively with Clang. This
# is a heuristic emulation that may or may not work.
env['EMMAKEN_JUST_CONFIGURE'] = '1'
if not any(a.startswith('--prefix') for a in args):
sysroot = os.path.join(shared.Cache.get_sysroot_dir())
args.append('--prefix=' + os.path.join(shared.Cache.get_sysroot_dir(), 'local'))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this code seems unrelated to the comment above it, and i'm not sure what it does?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, this is kind of a separate change.. and it requires some more testing.

Automatically add `sysroot/local/include` and `sysroot/local/lib` to the
include and library path.

Also, use this new local subdirectory by default in emscripten by
passing `--prefix=<sysroot>/local`.  This should make `emconfigure +
make install` work out of the box.

Also, add `sysroot/lib` to the library path which allows libraries
installed via `./configure --prefix=<sysroot>` and then `make install`
to be found automativally.

Fixes: #13753
@stale
Copy link

stale bot commented Apr 16, 2022

This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 30 days. Feel free to re-open at any time if this issue is still relevant.

@stale stale bot added the wontfix label Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

autotools m4 breakage from v2.0.12 to v2.0.13
2 participants