mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
binutils: use a no-op for makeinfo
This way, we don't have to touch every file generated from one we patch. It also makes it possible to do an out-of-tree build — otherwise, the source files would be copied into the build directory during Make, so there'd be no opportunity to touch some of them. This same hack is already used by the minimal-bootstrap binutils.
This commit is contained in:
parent
d4f11e2f72
commit
ea648ee3d7
1 changed files with 7 additions and 14 deletions
|
@ -147,22 +147,8 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
for i in binutils/Makefile.in gas/Makefile.in ld/Makefile.in gold/Makefile.in; do
|
||||
sed -i "$i" -e 's|ln |ln -s |'
|
||||
done
|
||||
|
||||
# autoreconfHook is not included for all targets.
|
||||
# Call it here explicitly as well.
|
||||
${finalAttrs.postAutoreconf}
|
||||
'';
|
||||
|
||||
postAutoreconf = ''
|
||||
# As we regenerated configure build system tries hard to use
|
||||
# texinfo to regenerate manuals. Let's avoid the dependency
|
||||
# on texinfo in bootstrap path and keep manuals unmodified.
|
||||
touch gas/doc/.dirstamp
|
||||
touch gas/doc/asconfig.texi
|
||||
touch gas/doc/as.1
|
||||
touch gas/doc/as.info
|
||||
'';
|
||||
|
||||
# As binutils takes part in the stdenv building, we don't want references
|
||||
# to the bootstrap-tools libgcc (as uses to happen on arm/mips)
|
||||
#
|
||||
|
@ -247,6 +233,13 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
]
|
||||
);
|
||||
|
||||
makeFlags = [
|
||||
# As we regenerated configure build system tries hard to use
|
||||
# texinfo to regenerate manuals. Let's avoid the dependency
|
||||
# on texinfo in bootstrap path and keep manuals unmodified.
|
||||
"MAKEINFO=true"
|
||||
];
|
||||
|
||||
# Fails
|
||||
doCheck = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue