Skip to content

Should we map libraries specified on the command line to the current variant? -lgl to the required variant #14341

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

Closed
sbc100 opened this issue Jun 2, 2021 · 0 comments · Fixed by #14355

Comments

@sbc100
Copy link
Collaborator

sbc100 commented Jun 2, 2021

If user specifies -lc on the command line should we map that to -lc-mt to according to the variant naming scheme in tools/system_libraries.py. I tend to think that we should.

This will allow things like -GL to map to libGL-mt-emu.a automatically.

sbc100 added a commit that referenced this issue Jun 3, 2021
Normally users don't specify system libraries such as
libc or compiler-rt on the command line.  However, when
they do it makes sense map them to correct variant.

For example, linking with `-pthread` + `-lc` will now
end up including `libc-mt.a` rather than `libc.a`.

Fixes: #14341
sbc100 added a commit that referenced this issue Jun 3, 2021
Normally users don't specify system libraries such as
libc or compiler-rt on the command line.  However, when
they do it makes sense map them to correct variant.

For example, linking with `-pthread` + `-lc` will now
end up including `libc-mt.a` rather than `libc.a`.

Fixes: #14341
sbc100 added a commit that referenced this issue Jun 3, 2021
Normally users don't specify system libraries such as
libc or compiler-rt on the command line.  However, when
they do it makes sense map them to correct variant.

For example, linking with `-pthread` + `-lc` will now
end up including `libc-mt.a` rather than `libc.a`.

Fixes: #14341
sbc100 added a commit that referenced this issue Jun 3, 2021
Normally users don't specify system libraries such as
libc or compiler-rt on the command line.  However, when
they do it makes sense map them to correct variant.

For example, linking with `-pthread` + `-lc` will now
end up including `libc-mt.a` rather than `libc.a`.

Fixes: #14341
sbc100 added a commit that referenced this issue Jun 3, 2021
Normally users don't specify system libraries such as
libc or compiler-rt on the command line.  However, when
they do it makes sense map them to correct variant.

For example, linking with `-pthread` + `-lc` will now
end up including `libc-mt.a` rather than `libc.a`.

Fixes: #14341
sbc100 added a commit that referenced this issue Jun 4, 2021
Normally users don't specify system libraries such as
libc or compiler-rt on the command line.  However, when
they do it makes sense map them to correct variant.

For example, linking with `-pthread` + `-lc` will now
end up including `libc-mt.a` rather than `libc.a`.

Fixes: #14341
sbc100 added a commit that referenced this issue Jun 4, 2021
Normally users don't specify system libraries such as
libc or compiler-rt on the command line.  However, when
they do it makes sense map them to correct variant.

For example, linking with `-pthread` + `-lc` will now
end up including `libc-mt.a` rather than `libc.a`.

Fixes: #14341
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

Successfully merging a pull request may close this issue.

1 participant