summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru-Cezar Sardan <alexandru.sardan@freescale.com>2014-03-03 19:45:38 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-07 14:58:44 +0000
commit30b5a6ed25c4f341cb61482a75cb13c01f97de96 (patch)
tree206ecb4952828ee806d23612ee397253d9e73bab
parent8d4c4d1ca557621aba26aa86a6c0104f9750afe6 (diff)
downloadpoky-30b5a6ed25c4f341cb61482a75cb13c01f97de96.tar.gz
libgcc: make sure symlinks are created in a valid directory
When adding extra symlinks, we have to make sure that the directory that the links are created in is valid. Added a check for this. This is an incremental addition to commit 97f2a81d6796ddaf7bbaab86c2ab9039673c732c (From OE-Core rev: ea297e807f4f84c281e0f8c6c4470ee3f3fa949b) Signed-off-by: Alexandru-Cezar Sardan <alexandru.sardan@freescale.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/gcc/libgcc.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/libgcc.inc b/meta/recipes-devtools/gcc/libgcc.inc
index b185660ffd..96f1969d90 100644
--- a/meta/recipes-devtools/gcc/libgcc.inc
+++ b/meta/recipes-devtools/gcc/libgcc.inc
@@ -150,7 +150,7 @@ python do_extra_symlinks() {
150 if targetsysnoext != d.getVar('TARGET_SYS', True): 150 if targetsysnoext != d.getVar('TARGET_SYS', True):
151 dest = d.getVar('D', True) + d.getVar('libdir', True) + '/' + targetsysnoext 151 dest = d.getVar('D', True) + d.getVar('libdir', True) + '/' + targetsysnoext
152 src = d.getVar('TARGET_SYS', True) 152 src = d.getVar('TARGET_SYS', True)
153 if not os.path.lexists(dest): 153 if not os.path.lexists(dest) and os.path.lexists(d.getVar('D', True) + d.getVar('libdir', True)):
154 os.symlink(src, dest) 154 os.symlink(src, dest)
155} 155}
156 156