mirror of
https://github.com/servo/servo.git
synced 2025-07-17 20:33:40 +01:00
mach: macos: Don't let gstreamer override symbols (#37903)
Using DYLD_FALLBACK_LIBRARY_PATH means we first try to link to the normal libraries and only fallback to looking up symbols in gstreamer if the symbols were not found elsewhere. This prevents some linking issues. Testing: Covered by existing tests. Fix for issue #37811 manually verified by the reporter. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
This commit is contained in:
parent
f7c86c4393
commit
11bb83d422
2 changed files with 1 additions and 4 deletions
|
@ -11,9 +11,6 @@ use std::process::Command;
|
|||
fn git_sha() -> Result<String, String> {
|
||||
let output = Command::new("git")
|
||||
.args(["rev-parse", "--short", "HEAD"])
|
||||
// on macos mach sets DYLD_LIBRARY_PATH since it is needed for unit-tests, but it
|
||||
// causes git to fail, so we remove it for the git invocation.
|
||||
.env_remove("DYLD_LIBRARY_PATH")
|
||||
.output()
|
||||
.map_err(|e| e.to_string())?;
|
||||
if output.status.success() {
|
||||
|
|
|
@ -466,7 +466,7 @@ class CommandBase(object):
|
|||
# GStreamer distribution (such as harfbuzz), but we only modify the rpath of the
|
||||
# target binary (servoshell / libsimpleservo).
|
||||
if platform.is_macos:
|
||||
util.prepend_paths_to_env(env, "DYLD_LIBRARY_PATH", os.path.join(gstreamer_root, "lib"))
|
||||
util.prepend_paths_to_env(env, "DYLD_FALLBACK_LIBRARY_PATH", os.path.join(gstreamer_root, "lib"))
|
||||
|
||||
if sys.platform != "win32":
|
||||
env.setdefault("CC", "clang")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue