From 6e780a5edbd4bd853c53451504945af2a0a2a4a1 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Sun, 15 Apr 2007 19:21:53 +0000 Subject: [PATCH] Use .so extension only when input file is a .bin file; otherwise use input file's extension. --- v7/src/compiler/machines/C/cout.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/v7/src/compiler/machines/C/cout.scm b/v7/src/compiler/machines/C/cout.scm index 91fffaef9..8c5af178e 100644 --- a/v7/src/compiler/machines/C/cout.scm +++ b/v7/src/compiler/machines/C/cout.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: cout.scm,v 1.37 2007/04/15 17:36:57 cph Exp $ +$Id: cout.scm,v 1.38 2007/04/15 19:21:53 cph Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -104,7 +104,11 @@ USA. (define (default-file-handle) (or (liarc-object-pathname->handle - (pathname-new-type *compiler-output-pathname* (c-output-extension))) + (pathname-new-type *compiler-output-pathname* + (let ((t (pathname-type *compiler-input-pathname*))) + (if (equal? t "bin") + (c-output-extension) + t)))) "handle")) (define (stringify suffix initial-label lap-code info-output-pathname) -- 2.25.1