summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-06-07 21:04:52 -0700
committerMichael Forney <mforney@mforney.org>2019-06-09 22:43:05 -0700
commitc957c486be71fb63a6f5fba8c5ac1cb1fcd5f04f (patch)
treeb3796ce8da82e5113998ae67528f63cc39d67c5c /pkg
parent2e6b6a5e8a24555f4d421ca9b166b7ae7cc986cf (diff)
Use libelf from elftoolchain
Diffstat (limited to 'pkg')
-rw-r--r--pkg/elftoolchain/gen.lua2
-rw-r--r--pkg/elfutils/gen.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/elftoolchain/gen.lua b/pkg/elftoolchain/gen.lua
index 4bdeabe4..8a728811 100644
--- a/pkg/elftoolchain/gen.lua
+++ b/pkg/elftoolchain/gen.lua
@@ -9,6 +9,7 @@ cflags{
pkg.hdrs = {
copy('$outdir/include', '$srcdir/libelf', {'libelf.h', 'gelf.h'}),
copy('$outdir/include', '$srcdir/common', {'elfdefinitions.h'}),
+ install=true,
}
rule('m4', 'm4 -D SRCDIR=$srcdir/libelf $in >$out.tmp && mv $out.tmp $out')
@@ -74,5 +75,6 @@ lib('libelf.a', [[
)
$outdir/(libelf_convert.c libelf_fsize.c libelf_msize.c)
]])
+file('lib/libelf.a', '644', '$outdir/libelf.a')
fetch 'curl'
diff --git a/pkg/elfutils/gen.lua b/pkg/elfutils/gen.lua
index 2d1d5b10..cec705a8 100644
--- a/pkg/elfutils/gen.lua
+++ b/pkg/elfutils/gen.lua
@@ -8,7 +8,6 @@ cflags{
}
pkg.hdrs = copy('$outdir/include', '$srcdir/libelf', {'libelf.h', 'gelf.h'})
-pkg.hdrs.install = true
lib('libelf.a', [[libelf/(
elf_version.c elf_hash.c elf_error.c elf_fill.c
@@ -62,6 +61,5 @@ lib('libelf.a', [[libelf/(
elf32_getchdr.c elf64_getchdr.c gelf_getchdr.c
elf_compress.c elf_compress_gnu.c
)]])
-file('lib/libelf.a', '644', '$outdir/libelf.a')
fetch 'git'