8 binutils-unwrapped_2_38,
16 inherit (binutils-unwrapped_2_38) version src;
23 patches = binutils-unwrapped_2_38.patches ++ [
24 ./build-components-separately.patch
26 url = "https://raw.githubusercontent.com/mxe/mxe/e1d4c144ee1994f70f86cf7fd8168fe69bd629c6/src/bfd-1-disable-subdir-doc.patch";
27 sha256 = "0pzb3i74d1r7lhjan376h59a7kirw15j7swwm8pz3zy9lkdqkj6q";
31 # We just want to build libbfd
37 echo "Updating config.guess and config.sub from ${gnu-config}"
38 cp -f ${gnu-config}/config.{guess,sub} ../
41 # We update these ourselves
42 dontUpdateAutotoolsGnuConfigScripts = true;
52 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libintl ];
54 configurePlatforms = [
59 "--enable-targets=all"
61 "--enable-install-libbfd"
63 ] ++ lib.optional (!stdenv.hostPlatform.isStatic) "--enable-shared";
65 enableParallelBuilding = true;
68 description = "Library for manipulating containers of machine code";
70 BFD is a library which provides a single interface to read and write
71 object files, executables, archive files, and core files in any format.
72 It is associated with GNU Binutils, and elsewhere often distributed with
75 homepage = "https://www.gnu.org/software/binutils/";
76 license = licenses.gpl3Plus;
77 maintainers = with maintainers; [ ericson2314 ];
78 platforms = platforms.unix;