summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2019-08-17 19:36:19 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-09-02 16:06:19 +0200
commit937c2daf9b62f5b32dfa1a310d2009b3ba6eee66 (patch)
treeb7b566921f9b4168a15e3c34beeccd066d360d8b
parent1ea474ef5a4f5b4cac6e60276e974f704c9ed95c (diff)
downloadOSELAS.Toolchain-937c2daf9b62f5b32dfa1a310d2009b3ba6eee66.tar.gz
OSELAS.Toolchain-937c2daf9b62f5b32dfa1a310d2009b3ba6eee66.tar.xz
cross-gcc: drop unnecessary symlinks
These symlinks used to be necessary for ld to find the libraries. However, links for some libraries are missing (e.g. libatomic). This caused various linker errors. 3f6cf1ed53b19e77ab43306d239eb2310a11107f ("cross-binutils: improve search paths") added the real path of those libraries to the search path, so the extra symlinks are no longer necessary. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/cross-gcc.make24
1 files changed, 0 insertions, 24 deletions
diff --git a/rules/cross-gcc.make b/rules/cross-gcc.make
index 413b938..8b7d136 100644
--- a/rules/cross-gcc.make
+++ b/rules/cross-gcc.make
@@ -165,30 +165,6 @@ $(STATEDIR)/cross-gcc.install: $(STATEDIR)/cross-gcc.report
pkg_license_target_pattern=$(PTXCONF_CROSS_GCC_GCCLIBS_LICENSES) \
ptxd_make_world_copy_license
- @cd "$(CROSS_GCC_PKGDIR)/$(PTX_TOUPLE_TARGET)/lib"; \
- dst="$(CROSS_GCC_PKGDIR)/sysroot-$(PTXCONF_GNU_TARGET)/usr/lib"; \
- mkdir -p "$${dst}" && \
- rel="$$($(ptx/abs2rel) "$${dst}" "$${PWD}")" && \
- for file in \
- libg2c.*so* \
- libgcc_s.*so* \
- libgfortran.*so* \
- libgomp.*so* \
- libmudflap.*so* \
- libmudflapth.*so* \
- libssp.*so* \
- libstdc++.*so* \
- ; do \
- [ \! -e "$${file}" ] && continue; \
- \
- dst_file="$${dst}/$${file}"; \
- rel_file="$${rel}/$${file}"; \
- if [ -L "$${file}" ]; then \
- cp -vdR "$${file}" "$${dst_file}"; \
- else \
- ln -vfs "$${rel_file}" "$${dst_file}"; \
- fi || exit 1; \
- done
@find $(CROSS_GCC_PKGDIR) -name "*.la" -print0 | xargs -0 rm -v -f
ifneq ($(call remove_quotes,$(PTXCONF_DESTDIR)),)