[meta-lsi] [PATCH 19/22] libgfortran: Correct symlinks for libgcc libraries

Daniel Dragomir daniel.dragomir at windriver.com
Thu Jan 28 04:57:10 PST 2016


When configuring libgfortran, syslinks are created for the gcc
libraries but have wrong target path and the symlinks are not valid.
Corrected libgcc symlinks.

Signed-off-by: Daniel Dragomir <daniel.dragomir at windriver.com>
---
 recipes-devtools/gcc/libgfortran_5.2.bbappend | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/recipes-devtools/gcc/libgfortran_5.2.bbappend b/recipes-devtools/gcc/libgfortran_5.2.bbappend
index d44c19a..2868767 100644
--- a/recipes-devtools/gcc/libgfortran_5.2.bbappend
+++ b/recipes-devtools/gcc/libgfortran_5.2.bbappend
@@ -3,3 +3,13 @@ FILES_${PN}-dev += "\
 	${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude/ieee_features.mod \
 	${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude/ieee_arithmetic.mod \
 "
+
+do_configure_append() {
+	# Correct invalid libgcc symlinks with wrong target path.
+	cd ${B}/$target/libgcc
+	for d in enable-execute-stack.c gthr-default.h md-unwind-support.h sfp-machine.h unwind.h; do
+		if [ ! -e "$d" ]; then
+			ln -f -s ./../$(readlink $d) $d
+		fi
+	done
+}
-- 
1.9.1



More information about the meta-lsi mailing list