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

OpenAMP apps -static versions do not link to libmetal statically (LInux userspace) #547

Open
wmamills opened this issue Jan 25, 2024 · 3 comments
Labels

Comments

@wmamills
Copy link
Collaborator

wmamills commented Jan 25, 2024

When building the Linux user space apps (-DWITH_APPS=ON ) the apps are build in -shared and -static versions.
The shared versions links against the .so files of both open-amp and libmetal.

The -static version uses the static library for open-amp but still links to the shared library of libmetal.

Thus the user needs to install the libraries to the system directories or use LD_LIBRARY_PATH to run either type of app.
Surly the point of having the -static version is to make the apps easier to run and debug.

The cmake file should be updated to allow libmetal to be statically linked as well.
This may make the open-amp make a touch messier but it seems worth it.

Copy link

This issue has been marked as a stale issue because it has been open (more than) 45 days with no activity.

@tnmysh
Copy link
Collaborator

tnmysh commented Jul 25, 2024

I think this issue happens because static library linking isn't enforced via -static flag.

@wmamills if we enforce -static flag, then it should work as expected correct ?

@github-actions github-actions bot removed the Stale label Jul 26, 2024
Copy link

github-actions bot commented Sep 9, 2024

This issue has been marked as a stale issue because it has been open (more than) 45 days with no activity.

@github-actions github-actions bot added the Stale label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants