Skip to content
Snippets Groups Projects
Commit e3157cde authored by Simon McVittie's avatar Simon McVittie
Browse files

Install capsule-elf-dump


This can be useful as a sanity check for how we parse a library.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 76b1e2df
No related branches found
No related tags found
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
......@@ -30,7 +30,7 @@ Makefile
shim/*.so.c
shim/*.so.symbols
shim/*.so.map
elf-dump
/capsule-elf-dump
print-libstubs
capsule-symbols
capsule-version
......
......@@ -49,8 +49,10 @@ data/$(host)-capsule-mkstublib: data/capsule-mkstublib Makefile
install-exec-hook:
cd $(DESTDIR)$(bindir) && ln -f capsule-symbols $(host)-capsule-symbols
cd $(DESTDIR)$(bindir) && ln -f capsule-version $(host)-capsule-version
cd $(DESTDIR)$(bindir) && ln -f capsule-elf-dump $(host)-capsule-elf-dump
uninstall-hook:
cd $(DESTDIR)$(bindir) && rm -f $(host)-capsule-elf-dump
cd $(DESTDIR)$(bindir) && rm -f $(host)-capsule-symbols
cd $(DESTDIR)$(bindir) && rm -f $(host)-capsule-version
......@@ -58,13 +60,13 @@ uninstall-hook:
nobase_include_HEADERS += capsule/capsule-shim.h \
capsule/_int_dlopen.h
# demo program - keep this hanging around as it's a useful PoC
noinst_PROGRAMS = elf-dump
# Mostly just a demo program, but keep this hanging around as it's a useful PoC
bin_PROGRAMS += capsule-elf-dump
elf_dump_SOURCES = utils/elf-dump.c utils/utils.c
elf_dump_LDADD = -ldl
elf_dump_SOURCES += utils/utils.h
elf_dump_CFLAGS = $(AM_CFLAGS)
capsule_elf_dump_SOURCES = utils/elf-dump.c utils/utils.c
capsule_elf_dump_LDADD = -ldl
capsule_elf_dump_SOURCES += utils/utils.h
capsule_elf_dump_CFLAGS = $(AM_CFLAGS)
# now the rules for building our installables:
capsule_symbols_SOURCES = utils/print-libstubs.c \
......
usr/bin/*-capsule-elf-dump
usr/bin/*-capsule-mkstublib
usr/bin/*-capsule-symbols
usr/bin/*-capsule-version
......
......@@ -58,6 +58,7 @@ override_dh_install:
find debian/tmp/usr/lib/libcapsule/installed-tests -name '*.la' -print -delete
# Only keep the architecture-qualified version, delete the unprefixed
# version, so we can be Multi-Arch: same
rm -f debian/tmp/usr/bin/capsule-elf-dump
rm -f debian/tmp/usr/bin/capsule-symbols
rm -f debian/tmp/usr/bin/capsule-version
dh_install --fail-missing
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment