Skip to content

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

@darealshinji

Description

@darealshinji

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions