From 6af54bccfa7e97f72330e76a1d9638902c7900f0 Mon Sep 17 00:00:00 2001 From: jgarcia Date: Thu, 12 Jul 2007 09:25:30 +0000 Subject: [PATCH] Store linker on a separate variable --- src/cmp/cmpdefs.lsp | 3 +++ src/cmp/cmpmain.lsp | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/cmp/cmpdefs.lsp b/src/cmp/cmpdefs.lsp index d4ef7081f..51653b33a 100644 --- a/src/cmp/cmpdefs.lsp +++ b/src/cmp/cmpdefs.lsp @@ -408,6 +408,9 @@ One can set the variable appropriately adding for instance flags which the C compiler may need to exploit special hardware features (e.g. a floating point coprocessor).") +(defvar *ld* "@ECL_CC@" +"This variable controls the linker which is used by ECL.") + (defvar *cc-flags* "@CPPFLAGS@ @CFLAGS@ @ECL_CFLAGS@") (defvar *cc-optimize* #-msvc "-O" diff --git a/src/cmp/cmpmain.lsp b/src/cmp/cmpmain.lsp index 0be74cc48..da3e53ca1 100644 --- a/src/cmp/cmpmain.lsp +++ b/src/cmp/cmpmain.lsp @@ -69,7 +69,7 @@ (safe-system (format nil *ld-format* - *cc* + *ld* (si::coerce-to-filename o-pathname) (fix-for-mingw (ecl-library-directory)) options @@ -81,7 +81,7 @@ (safe-system (format nil *ld-format* - *cc* + *ld* (si::coerce-to-filename o-pathname) (fix-for-mingw (ecl-library-directory)) options @@ -103,7 +103,7 @@ (safe-system (format nil *ld-format* - *cc* + *ld* (si::coerce-to-filename o-pathname) (fix-for-mingw (ecl-library-directory)) options