summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/swig/swig.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/swig/swig.inc')
-rw-r--r--meta/recipes-devtools/swig/swig.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-devtools/swig/swig.inc b/meta/recipes-devtools/swig/swig.inc
index 704bb27b92..8cb6fbd48b 100644
--- a/meta/recipes-devtools/swig/swig.inc
+++ b/meta/recipes-devtools/swig/swig.inc
@@ -54,8 +54,8 @@ do_install_append_class-nativesdk() {
54} 54}
55 55
56def swiglib_relpath(d): 56def swiglib_relpath(d):
57 swiglib = d.getVar('datadir', True) + "/" + d.getVar('BPN', True) + "/" + d.getVar('PV', True) 57 swiglib = d.getVar('datadir') + "/" + d.getVar('BPN') + "/" + d.getVar('PV')
58 return os.path.relpath(swiglib, d.getVar('bindir', True)) 58 return os.path.relpath(swiglib, d.getVar('bindir'))
59 59
60do_install_append_class-native() { 60do_install_append_class-native() {
61 create_wrapper ${D}${bindir}/swig SWIG_LIB='`dirname $''realpath`'/${@swiglib_relpath(d)} 61 create_wrapper ${D}${bindir}/swig SWIG_LIB='`dirname $''realpath`'/${@swiglib_relpath(d)}