From 26b098c6dd2920d993931ee8458d79e92f8d7773 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Mon, 20 Mar 2023 20:06:43 +0100 Subject: [PATCH] dwz: New package Signed-off-by: Stefan Schantl Signed-off-by: Michael Tremer --- dwz/dwz.nm | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 dwz/dwz.nm diff --git a/dwz/dwz.nm b/dwz/dwz.nm new file mode 100644 index 000000000..8b63a64fc --- /dev/null +++ b/dwz/dwz.nm @@ -0,0 +1,66 @@ +############################################################################### +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # +############################################################################### + +name = dwz +version = 0.15 +release = 1 + +groups = Development/Tools +url = https://sourceware.org/dwz/ +license = GPLv2+ and GPLv3+ +summary = DWARF optimization and duplicate removal tool + +description + The dwz package contains a program that attempts to optimize DWARF + debugging information contained in ELF shared libraries and ELF executables + for size, by replacing DWARF information representation with equivalent + smaller representation where possible and by reducing the amount of + duplication using techniques from DWARF standard appendix E - creating + DW_TAG_partial_unit compilation units (CUs) for duplicated information + and using DW_TAG_imported_unit to import it into each CU that needs it. +end + +source_dl = https://sourceware.org/ftp/dwz/releases/ +sources = %{thisapp}.tar.xz + +build + requires + elfutils-devel + xxhash-devel + + # Testsuite + dejagnu + gdb + end + + DIR_APP = %{DIR_SRC}/%{name} + + make_build_targets += \ + CFLAGS="%{CFLAGS}" \ + LDFLAGS="%{LDFLAGS}" \ + srcdir=%{DIR_APP} \ + prefix=%{prefix} \ + bindir=%{bindir} \ + mandir=%{mandir} + + test + # Compile the testsuite without any compiler or linker flags. + CFLAGS= LDFLAGS= srcdir=%{DIR_APP} make check + end + + make_install_targets += \ + srcdir=%{DIR_APP} \ + prefix=%{prefix} \ + bindir=%{bindir} \ + mandir=%{mandir} +end + +packages + package %{name} + + package %{name}-debuginfo + template DEBUGINFO + end +end -- 2.47.3