From 6bed629a81797753bf2eda864aa0e0514df2b13a Mon Sep 17 00:00:00 2001 From: fosslinux Date: Fri, 27 Jan 2023 17:00:47 +1100 Subject: [PATCH] Add $triplet-$prog symlinks to binutils --- sysc/binutils-2.38/binutils-2.38.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sysc/binutils-2.38/binutils-2.38.sh b/sysc/binutils-2.38/binutils-2.38.sh index 4edd787..63af815 100755 --- a/sysc/binutils-2.38/binutils-2.38.sh +++ b/sysc/binutils-2.38/binutils-2.38.sh @@ -92,4 +92,11 @@ src_install() { for dir in libiberty bfd opcodes libctf binutils gas gprof ld; do make -C $dir tooldir=${PREFIX} DESTDIR="${DESTDIR}" install done + + # Create triplet symlinks + pushd "${DESTDIR}${PREFIX}/bin" + for f in *; do + ln -s "${PREFIX}/bin/${f}" "i386-unknown-linux-musl-${f}" + done + popd }