Lines 306-318
def _env_update(makelinks, target_root, prev_mtimes, contents, env,
Link Here
|
306 |
if not libdir_contents_changed: |
306 |
if not libdir_contents_changed: |
307 |
makelinks = False |
307 |
makelinks = False |
308 |
|
308 |
|
309 |
ldconfig = "/sbin/ldconfig" |
309 |
ldconfig = eprefix + "/sbin/ldconfig" |
310 |
if "CHOST" in settings and "CBUILD" in settings and \ |
310 |
if "CHOST" in settings and "CBUILD" in settings and \ |
311 |
settings["CHOST"] != settings["CBUILD"]: |
311 |
settings["CHOST"] != settings["CBUILD"]: |
312 |
ldconfig = find_binary("%s-ldconfig" % settings["CHOST"]) |
312 |
ldconfig = find_binary("%s-ldconfig" % settings["CHOST"]) |
313 |
|
313 |
|
314 |
# Only run ldconfig as needed |
314 |
# Only run ldconfig as needed |
315 |
if makelinks and ldconfig and not eprefix: |
315 |
if makelinks and ldconfig: |
316 |
# ldconfig has very different behaviour between FreeBSD and Linux |
316 |
# ldconfig has very different behaviour between FreeBSD and Linux |
317 |
if ostype == "Linux" or ostype.lower().endswith("gnu"): |
317 |
if ostype == "Linux" or ostype.lower().endswith("gnu"): |
318 |
# We can't update links if we haven't cleaned other versions first, as |
318 |
# We can't update links if we haven't cleaned other versions first, as |