Skip to content
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

Adding dependent libraries #1279

Open
sphaero opened this issue Aug 31, 2021 · 1 comment
Open

Adding dependent libraries #1279

sphaero opened this issue Aug 31, 2021 · 1 comment

Comments

@sphaero
Copy link
Contributor

sphaero commented Aug 31, 2021

How can one add libraries to the project?

For example I just added an executable which depends on libdl but I can't express this in the project.xml? I now have to manually modify the generated CMakeLists.txt, or set LDFLAGS on the command line?

Suggestions welcome!

@sphaero
Copy link
Contributor Author

sphaero commented Aug 31, 2021

I also tried

    <use project = "libc">
      <linkname>"dl"</linkname>
    </use>

But to no avail as this generates much more then needed, ie #include <libc.h> in the global include.

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

No branches or pull requests

1 participant