From e3ff697371d51a90c8de6c31d60adfac913efb17 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Fri, 9 Aug 2019 15:38:55 +0200 Subject: cross-elf2flt: use symlinks instead of hardlinks This makes it less likely to accidentally duplicate the file. Also, Debian uses symlinks for this as well. Signed-off-by: Michael Olbrich --- rules/cross-elf2flt.make | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rules/cross-elf2flt.make b/rules/cross-elf2flt.make index 75dbc61..48afb66 100644 --- a/rules/cross-elf2flt.make +++ b/rules/cross-elf2flt.make @@ -43,5 +43,12 @@ CROSS_ELF2FLT_CONF_OPT := \ --with-binutils-build-dir=$(CROSS_BINUTILS_BUILDDIR) \ --with-libbfd="$(CROSS_BINUTILS_BUILDDIR)/bfd/libbfd.a -lz -ldl" +$(STATEDIR)/cross-elf2flt.install: + @$(call targetinfo) + @$(call world/install, CROSS_ELF2FLT) + @for bin in $(CROSS_ELF2FLT_PKGDIR)$(PTXCONF_PREFIX_CROSS)/$(PTXCONF_GNU_TARGET)/bin/*; do \ + ln -vsf ../../bin/$(COMPILER_PREFIX)$$(basename $${bin}) $${bin} || break; \ + done + @$(call touch) # vim: syntax=make -- cgit v1.2.3