core: set the DYLD_LIBRARY_PATH before other env vars

This commit is contained in:
Mitchell Hashimoto 2013-09-18 09:42:18 -07:00
parent 7c3b342add
commit 5b2a28cd4c
1 changed files with 7 additions and 7 deletions

View File

@ -73,13 +73,6 @@ module Vagrant
process.io.stderr = stderr_writer
process.duplex = true
# Set the environment on the process if we must
if @options[:env]
@options[:env].each do |k, v|
process.environment[k] = v
end
end
# If we're in the installer and the command is NOT included
# in the installer (external), then remove the DYLD_IMPORT_PATH
# environmental variable to run into linker issues. [GH-2219]
@ -94,6 +87,13 @@ module Vagrant
end
end
# Set the environment on the process if we must
if @options[:env]
@options[:env].each do |k, v|
process.environment[k] = v
end
end
# Start the process
begin
SafeChdir.safe_chdir(workdir) do