From d23d974654fbef889aa1c110d6e2968e07b58930 Mon Sep 17 00:00:00 2001
From: "Erik M. Bray" <erik.bray@lri.fr>
Date: Thu, 17 Mar 2016 15:57:16 +0100
Subject: [PATCH] Allow CC and other environment variables passed to
 safe-run-program to be a command with arguments

---
 src/cmp/cmpos-run.lsp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/cmp/cmpos-run.lsp b/src/cmp/cmpos-run.lsp
index 49f6605..b824409 100755
--- a/src/cmp/cmpos-run.lsp
+++ b/src/cmp/cmpos-run.lsp
@@ -54,7 +54,10 @@
   (cmpnote "Invoking external command:~%  ~A ~{~A ~}" program args)
   (multiple-value-bind (stream result process)
       (let* ((*standard-output* ext:+process-standard-output+)
-             (*error-output* ext:+process-error-output+))
+             (*error-output* ext:+process-error-output+)
+             (program (split-program-options program))
+             (args `(,@(cdr program) ,@args))
+             (program (car program)))
         (with-current-directory
             #-(and cygwin (not ecl-min))
             (ext:run-program program args :input nil :output t :error t :wait t)
-- 
1.9.1

