diff options
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/utils.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py index 9a86410b15..30d30629f1 100644 --- a/meta/lib/oe/utils.py +++ b/meta/lib/oe/utils.py | |||
@@ -293,3 +293,14 @@ class ThreadedPool: | |||
293 | self.tasks.join() | 293 | self.tasks.join() |
294 | for worker in self.workers: | 294 | for worker in self.workers: |
295 | worker.join() | 295 | worker.join() |
296 | |||
297 | def write_ld_so_conf(d): | ||
298 | # Some utils like prelink may not have the correct target library paths | ||
299 | # so write an ld.so.conf to help them | ||
300 | ldsoconf = d.expand("${STAGING_DIR_TARGET}${sysconfdir}/ld.so.conf") | ||
301 | if os.path.exists(ldsoconf): | ||
302 | bb.utils.remove(ldsoconf) | ||
303 | bb.utils.mkdirhier(os.path.dirname(ldsoconf)) | ||
304 | with open(ldsoconf, "w") as f: | ||
305 | f.write(d.getVar("base_libdir", True) + '\n') | ||
306 | f.write(d.getVar("libdir", True) + '\n') | ||