libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changes needed for OS/X


From: Bruce Korb
Subject: Changes needed for OS/X
Date: Wed, 16 Sep 2020 11:45:41 -0700

Hi,

OS/X has cleverly added some DYLD environment variables for telling
its loader to do special things. Problems arise when a binary needs to
spawn another version of itself when fork() won't do. (The new process
needs to start in main() and process arguments.) What happens is that
the loader can't find the right dynamic libraries because, also very
cleverly, all the DYLD_* environment variables have been stripped out.
The installed binaries work fine, but the build and test directories
are broken. I think the fix is to sneak the information in to some
OS/X only code that handles the call to exec(). e.g.

HIDE_DYLD=$(set | grep -E '^DYLD_[A-Z_]*=')

Would that work? Thanks.

Regards - Bruce



reply via email to

[Prev in Thread] Current Thread [Next in Thread]