diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libelf/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libelf/default.nix | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libelf/default.nix b/nixpkgs/pkgs/development/libraries/libelf/default.nix index 0a1a7175296e..fdfa4fda0def 100644 --- a/nixpkgs/pkgs/development/libraries/libelf/default.nix +++ b/nixpkgs/pkgs/development/libraries/libelf/default.nix @@ -2,11 +2,6 @@ , fetchurl, autoreconfHook, gettext, freebsd, netbsd }: -# Note: this package is used for bootstrapping fetchurl, and thus -# cannot use fetchpatch! All mutable patches (generated by GitHub or -# cgit) that are needed here should be included directly in Nixpkgs as -# files. - stdenv.mkDerivation rec { pname = "libelf"; version = "0.8.13"; @@ -52,18 +47,10 @@ stdenv.mkDerivation rec { (if stdenv.hostPlatform.isFreeBSD then [ freebsd.gencat ] else if stdenv.hostPlatform.isNetBSD then [ netbsd.gencat ] else [ gettext ]) - # Need to regenerate configure script with newer version in order to pass - # "mr_cv_target_elf=yes" and determine integer sizes correctly when - # cross-compiling, but `autoreconfHook` brings in `makeWrapper` which - # doesn't work with the bootstrapTools bash, so can only do this for - # cross builds when `stdenv.shell` is a newer bash. - ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform # The provided `configure` script fails on clang 16 because some tests have a `main` # returning an implicit `int`, which clang 16 treats as an error. Running `autoreconf` fixes # the test and allows `configure` to detect clang properly. - # This is done only for clang on Darwin because the Darwin stdenv bootstrap does not use - # libelf, so should be safe because it will always be run with a compatible version of bash. - || (stdenv.cc.isClang && stdenv.isDarwin)) autoreconfHook; + ++ [ autoreconfHook ]; meta = { description = "ELF object file access library"; |