If using installed liarc compiler, also use its utilities.
authorChris Hanson <org/chris-hanson/cph>
Fri, 15 Jun 2007 18:07:28 +0000 (18:07 +0000)
committerChris Hanson <org/chris-hanson/cph>
Fri, 15 Jun 2007 18:07:28 +0000 (18:07 +0000)
v7/src/etc/utilities.scm

index 68002b21ecab38e5a37f01d5bdadc643fe886ec0..a081c592127b4bad74b90b2426551933f2de8a83 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: utilities.scm,v 1.6 2007/06/09 02:42:35 cph Exp $
+$Id: utilities.scm,v 1.7 2007/06/15 18:07:28 cph Exp $
 
 Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
     1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
@@ -44,10 +44,7 @@ USA.
       (let ((names (bundle-files bundle))
            (so-file (string-append bundle ".so")))
        (receive (script-dir include-dir)
-           (cond ((string=? cc-arch "C")
-                  (values "$(top_builddir)/microcode"
-                          "$(top_builddir)/microcode"))
-                 ((eq? microcode-id/compiled-code-type 'C)
+           (cond ((eq? microcode-id/compiled-code-type 'C)
                   (let ((dir
                          (lambda (name)
                            (->namestring
@@ -55,6 +52,9 @@ USA.
                              (system-library-directory-pathname name))))))
                     (values (dir "")
                             (dir "include"))))
+                 ((string=? cc-arch "C")
+                  (values "$(top_builddir)/microcode"
+                          "$(top_builddir)/microcode"))
                  (else
                   (values #f #f)))
          (call-with-output-file (string-append bundle "/Makefile-bundle")
@@ -73,7 +73,7 @@ USA.
                      (write-rule port "compile-liarc-bundle" so-file)
                      (newline port)
                      (write-rule port
-                                 (string-append bundle ".so")
+                                 so-file
                                  (string-append init-root ".o")
                                  (files+suffix names ".o"))
                      (write-command port