Skip to content

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

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

3 participants