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

Provide libappimage.[a,so] as linker scripts #187

Open
darealshinji opened this issue Jul 4, 2023 · 0 comments
Open

Provide libappimage.[a,so] as linker scripts #187

darealshinji opened this issue Jul 4, 2023 · 0 comments

Comments

@darealshinji
Copy link

libappimage.so should probably be provided as a linker script that links the shared library together with the static library parts.
The file content would be:
INPUT(libappimage.so.1.0 libappimage_hashlib.a libappimage_shared.a)

For libappimage.a I would to the same and copy/rename all the required static libraries that are used to link the shared library version:

INPUT
(
  libappimage_static.a
  libappimage_static_libxdg-basedir.a
  libappimage_hashlib.a
  libappimage_shared.a
  libappimage_static_libarchive.a
  libappimage_static_libXdgUtilsDesktopEntry.a
  libappimage_static_libXdgUtilsBaseDir.a
  libappimage_static_libsquashfuse.a
  libappimage_static_libsquashfuse_ll.a
  libappimage_static_libfuseprivate.a
  libappimage_static_liblzma.a
)

Examples of other libraries that do this:

cat /usr/lib/gcc/x86_64-linux-gnu/12/libgcc_s.so
cat /usr/lib/x86_64-linux-gnu/libncurses.so

I would also suggest to rename libappimage_shared.a to libappimage_private.a or something similar.

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