From 937c2daf9b62f5b32dfa1a310d2009b3ba6eee66 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Sat, 17 Aug 2019 19:36:19 +0200 Subject: 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 --- rules/cross-gcc.make | 24 ------------------------ 1 file changed, 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)),) -- cgit v1.2.3