summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Haubenwallner <haubi@gentoo.org>2019-06-24 13:01:25 +0200
committerMichael Haubenwallner <haubi@gentoo.org>2019-06-24 13:07:51 +0200
commit3326692aad3350ef104471ba2500207754c4129f (patch)
tree8e1f7079d4f5df08b85a4bb75227e83f7254335b /profiles/prefix
parentprefix/winnt/profile.bashrc: inform on DLL cp wrapper setup (diff)
downloadgentoo-3326692aad3350ef104471ba2500207754c4129f.tar.gz
gentoo-3326692aad3350ef104471ba2500207754c4129f.tar.bz2
gentoo-3326692aad3350ef104471ba2500207754c4129f.zip
prefix/winnt/profile.bashrc: move usr/lib/*.dll to usr/bin/
When dlls or executables are created without the parity loader in place, dlls may not be found when not in usr/bin. So better move dlls from usr/lib to usr/bin, much like Cygwin does. Signed-off-by: Michael Haubenwallner <haubi@gentoo.org>
Diffstat (limited to 'profiles/prefix')
-rw-r--r--profiles/prefix/windows/winnt/profile.bashrc11
1 files changed, 11 insertions, 0 deletions
diff --git a/profiles/prefix/windows/winnt/profile.bashrc b/profiles/prefix/windows/winnt/profile.bashrc
index 4e60691a4944..c0eaec08a6df 100644
--- a/profiles/prefix/windows/winnt/profile.bashrc
+++ b/profiles/prefix/windows/winnt/profile.bashrc
@@ -62,6 +62,17 @@ post_src_install() {
;;
esac
done
+ find usr/$(get_libdir) -maxdepth 1 -type f -name '*.dll' |
+ while read f
+ do
+ if test ! -f usr/bin/${f##*/}; then
+ ebegin "moving ${f} to usr/bin for native loader"
+ dodir usr/bin || die
+ mv -f "${f}" usr/bin || die
+ ln -sf "../bin/${f##*/}" "${f}"
+ eend $?
+ fi
+ done
}
windows_setup_dllhelper_cp() {