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" |
|
|
310 |
if "CHOST" in settings and "CBUILD" in settings and \ |
309 |
if "CHOST" in settings and "CBUILD" in settings and \ |
311 |
settings["CHOST"] != settings["CBUILD"]: |
310 |
settings["CHOST"] != settings["CBUILD"]: |
312 |
ldconfig = find_binary("%s-ldconfig" % settings["CHOST"]) |
311 |
ldconfig = find_binary("%s-ldconfig" % settings["CHOST"]) |
|
|
312 |
else: |
313 |
ldconfig = os.path.join(eroot, "sbin", "ldconfig") |
314 |
|
315 |
if not (os.access(ldconfig, os.X_OK) and os.path.isfile(ldconfig)): |
316 |
ldconfig = None |
313 |
|
317 |
|
314 |
# Only run ldconfig as needed |
318 |
# Only run ldconfig as needed |
315 |
if makelinks and ldconfig and not eprefix: |
319 |
if makelinks and ldconfig: |
316 |
# ldconfig has very different behaviour between FreeBSD and Linux |
320 |
# ldconfig has very different behaviour between FreeBSD and Linux |
317 |
if ostype == "Linux" or ostype.lower().endswith("gnu"): |
321 |
if ostype == "Linux" or ostype.lower().endswith("gnu"): |
318 |
# We can't update links if we haven't cleaned other versions first, as |
322 |
# We can't update links if we haven't cleaned other versions first, as |