elfutils: add support for debuginfod
Signed-off-by: Arthur Gautier <baloo@superbaloo.net>
This commit is contained in:
parent
4cbfcb3945
commit
c600d5232d
@ -1,6 +1,8 @@
|
|||||||
{ lib, stdenv, fetchurl, fetchpatch, pkg-config, autoreconfHook, musl-fts
|
{ lib, stdenv, fetchurl, fetchpatch, pkg-config, autoreconfHook, musl-fts
|
||||||
, musl-obstack, m4, zlib, bzip2, bison, flex, gettext, xz, setupDebugInfoDirs
|
, musl-obstack, m4, zlib, bzip2, bison, flex, gettext, xz, setupDebugInfoDirs
|
||||||
, argp-standalone }:
|
, argp-standalone
|
||||||
|
, enableDebuginfod ? false, sqlite, curl, libmicrohttpd_0_9_70, libarchive
|
||||||
|
}:
|
||||||
|
|
||||||
# TODO: Look at the hardcoded paths to kernel, modules etc.
|
# TODO: Look at the hardcoded paths to kernel, modules etc.
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -57,12 +59,18 @@ stdenv.mkDerivation rec {
|
|||||||
# We need bzip2 in NativeInputs because otherwise we can't unpack the src,
|
# We need bzip2 in NativeInputs because otherwise we can't unpack the src,
|
||||||
# as the host-bzip2 will be in the path.
|
# as the host-bzip2 will be in the path.
|
||||||
nativeBuildInputs = [ m4 bison flex gettext bzip2 ]
|
nativeBuildInputs = [ m4 bison flex gettext bzip2 ]
|
||||||
++ lib.optional stdenv.hostPlatform.isMusl [ pkg-config autoreconfHook ];
|
++ lib.optional stdenv.hostPlatform.isMusl [ pkg-config autoreconfHook ]
|
||||||
|
++ lib.optional enableDebuginfod [ pkg-config ];
|
||||||
buildInputs = [ zlib bzip2 xz ]
|
buildInputs = [ zlib bzip2 xz ]
|
||||||
++ lib.optional stdenv.hostPlatform.isMusl [
|
++ lib.optional stdenv.hostPlatform.isMusl [
|
||||||
argp-standalone
|
argp-standalone
|
||||||
musl-fts
|
musl-fts
|
||||||
musl-obstack
|
musl-obstack
|
||||||
|
] ++ lib.optionals enableDebuginfod [
|
||||||
|
sqlite
|
||||||
|
curl
|
||||||
|
libmicrohttpd_0_9_70
|
||||||
|
libarchive
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedNativeBuildInputs = [ setupDebugInfoDirs ];
|
propagatedNativeBuildInputs = [ setupDebugInfoDirs ];
|
||||||
@ -74,6 +82,7 @@ stdenv.mkDerivation rec {
|
|||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--program-prefix=eu-" # prevent collisions with binutils
|
"--program-prefix=eu-" # prevent collisions with binutils
|
||||||
"--enable-deterministic-archives"
|
"--enable-deterministic-archives"
|
||||||
|
] ++ lib.optionals (!enableDebuginfod) [
|
||||||
"--disable-libdebuginfod"
|
"--disable-libdebuginfod"
|
||||||
"--disable-debuginfod"
|
"--disable-debuginfod"
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user