From 84e3017bf8832a5a85f0646ebcb9488dfb09a6ac Mon Sep 17 00:00:00 2001 From: Nathan Rossi Date: Thu, 9 Mar 2017 23:59:31 +1000 Subject: libgcc: Relocate and package dll's in bindir Relocate and package the dll's provided by libgcc in bindir. It is convention that on mingw/windows dll files are installed into the bindir, this is done to avoid issues with search paths and allows for execution of binaries without the need to point at a libdir. Signed-off-by: Nathan Rossi --- recipes-devtools/gcc/libgcc_%.bbappend | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/recipes-devtools/gcc/libgcc_%.bbappend b/recipes-devtools/gcc/libgcc_%.bbappend index dd95317..2a95d02 100644 --- a/recipes-devtools/gcc/libgcc_%.bbappend +++ b/recipes-devtools/gcc/libgcc_%.bbappend @@ -1,2 +1,8 @@ -FILES_${PN}_append_mingw32 = " ${base_libdir}/libgcc*.dll" +FILES_${PN}_append_mingw32 = " ${bindir}/libgcc*.dll" FILES_${PN}-dev_append_mingw32 = " ${base_libdir}/libgcc*.a" + +do_install_append_mingw32 () { + # move the .dll files into bindir + install -d ${D}${bindir} + mv ${D}${base_libdir}/libgcc*.dll ${D}${bindir}/ +} -- cgit v1.2.3-54-g00ecf