summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2019-08-17 19:39:20 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-09-02 16:06:19 +0200
commit2523edf5b4747d9aedf29373c3a62bcd9130d583 (patch)
tree6e2aa18be7be93fae21dde0a1c4247edd07f1647
parent937c2daf9b62f5b32dfa1a310d2009b3ba6eee66 (diff)
downloadOSELAS.Toolchain-2523edf5b4747d9aedf29373c3a62bcd9130d583.tar.gz
cross-gcc: 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 <m.olbrich@pengutronix.de>
-rw-r--r--rules/cross-gcc.make4
1 files changed, 4 insertions, 0 deletions
diff --git a/rules/cross-gcc.make b/rules/cross-gcc.make
index 8b7d136..ac59906 100644
--- a/rules/cross-gcc.make
+++ b/rules/cross-gcc.make
@@ -165,6 +165,10 @@ $(STATEDIR)/cross-gcc.install: $(STATEDIR)/cross-gcc.report
pkg_license_target_pattern=$(PTXCONF_CROSS_GCC_GCCLIBS_LICENSES) \
ptxd_make_world_copy_license
+ @ln -vsf $(COMPILER_PREFIX)c++ \
+ $(CROSS_GCC_PKGDIR)$(PTXCONF_PREFIX_CROSS)/bin/$(COMPILER_PREFIX)g++
+ @ln -vsf $(COMPILER_PREFIX)gcc-$(CROSS_GCC_VERSION) \
+ $(CROSS_GCC_PKGDIR)$(PTXCONF_PREFIX_CROSS)/bin/$(COMPILER_PREFIX)gcc
@find $(CROSS_GCC_PKGDIR) -name "*.la" -print0 | xargs -0 rm -v -f
ifneq ($(call remove_quotes,$(PTXCONF_DESTDIR)),)