>From 35e8e63ee3a30becfdc7e6351ea5e358d4013ad3 Mon Sep 17 00:00:00 2001 From: Mario Domenech Goulart Date: Wed, 22 Aug 2012 18:11:50 -0300 Subject: [PATCH] csc.scm: properly handle -output-file This fixes #903 --- NEWS | 1 + csc.scm | 2 ++ 2 files changed, 3 insertions(+) diff --git a/NEWS b/NEWS index a8ce84e..efe430e 100644 --- a/NEWS +++ b/NEWS @@ -166,6 +166,7 @@ could expose C-Compiler bugs, depending on the compiler version (thanks to Sven Hartrumpf for pointing this out). - "-rpath" is ignored on OS X (thanks to Kon Lovett). + - Fixed handling of "-output-file" (it was being ignored) - "chicken-install" - Added option "-override", which allows retrieving extension- versions from a file - this may be useful to ensure specific diff --git a/csc.scm b/csc.scm index 7aca745..a3e9a30 100644 --- a/csc.scm +++ b/csc.scm @@ -741,6 +741,8 @@ EOF (check s rest) (let* ((n (car rest)) (ns (string->number n)) ) + (when (equal? arg "-output-file") + (set! target-filename n)) (t-options arg n) (set! rest (cdr rest)) ) ] [(and (> (string-length arg) 2) (string=? "-:" (substring arg 0 2))) -- 1.7.9.5