aboutsummaryrefslogtreecommitdiff
path: root/core/binutils/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-09-08 13:48:40 +0300
committerCem Keylan <cem@ckyln.com>2021-09-08 13:48:40 +0300
commit410c461aecd9dd72430b81d798e5117aa5d9b96f (patch)
treec4fa023e1a442732d156f1b307a9b9bd5acf2d74 /core/binutils/build
parent0672fb41db4d0edcc41786a0a71f5c32c3549394 (diff)
downloadrepository-410c461aecd9dd72430b81d798e5117aa5d9b96f.tar.gz
binutils: fix manual pages
Diffstat (limited to 'core/binutils/build')
-rwxr-xr-xcore/binutils/build12
1 files changed, 9 insertions, 3 deletions
diff --git a/core/binutils/build b/core/binutils/build
index 67a1af16..5b3140f0 100755
--- a/core/binutils/build
+++ b/core/binutils/build
@@ -9,13 +9,15 @@ case ${3:-$(uname -m)} in
--host=x86_64-pc-linux-musl"
esac
-cat > makeinfo <<EOF
+cpt l -q texinfo || {
+ cat > makeinfo <<EOF
#!/bin/sh
printf 'makeinfo (GNU texinfo) 5.2\n'
EOF
-chmod +x makeinfo
-export PATH=$PATH:$PWD
+ chmod +x makeinfo
+ export PATH=$PATH:$PWD
+}
# Word splitting is intentional here.
# shellcheck disable=2086
@@ -34,3 +36,7 @@ export PATH=$PATH:$PWD
make
make DESTDIR="$1" install
+
+# Manual pages are empty for some reason in binutils-2.37, so
+# we are installing the manual pages from 2.36.1
+clman -d "$1" man/*.1