diff options
author | dos-reis <gdr@axiomatics.org> | 2010-11-28 01:27:39 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2010-11-28 01:27:39 +0000 |
commit | c5d08b45f11c6b2acd7284802c9ffa43e6c73d09 (patch) | |
tree | d4d713ea95eff5474b646de80a271031a5dcb64b /src/lisp/Makefile.in | |
parent | 31cd499e87188ec57621f12335d4db910facdc1b (diff) | |
download | open-axiom-c5d08b45f11c6b2acd7284802c9ffa43e6c73d09.tar.gz |
* lisp/Makefile.in: Link the basic core with a C++ compiler when
GCL or ECL.
* lisp/core.lisp.in: Implement appropriate change.
Diffstat (limited to 'src/lisp/Makefile.in')
-rw-r--r-- | src/lisp/Makefile.in | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lisp/Makefile.in b/src/lisp/Makefile.in index b2b16486..2df4a9b9 100644 --- a/src/lisp/Makefile.in +++ b/src/lisp/Makefile.in @@ -47,7 +47,7 @@ build_libdir = ./$(top_builddir)/src/lib ## Consequently we temporarily give up here, e.g., we don't ## instruct GCL to use Libtool on Windows. GCL_LTCC = $(if $(findstring mingw, $(target)),"","$(LIBTOOL) --tag=CC --mode=compile ") -GCL_LTLD = $(if $(findstring mingw, $(target)),"","$(LIBTOOL) --tag=CC --mode=link ") +GCL_LTLD = $(if $(findstring mingw, $(target)),"$(CXX) $(LDFLAGS) -o ","$(CXXLINK) -o ") ## Again, ideally, we would like GCL to link with the compiled Lisp ## code from core.lisp. However, the general interface compiler::link @@ -93,13 +93,10 @@ lisp_c_objects = \ $(OUT)/lisp$(EXEEXT): base-lisp$(EXEEXT) ifeq (@axiom_lisp_flavor@,gcl) echo '(let* ((sys-cc compiler::*cc*) ' \ - ' (sys-ld compiler::*ld*) ' \ ' (compiler::*cc* (concatenate (quote string) ' \ ' $(GCL_LTCC) ' \ ' sys-cc)) ' \ - ' (compiler::*ld* (concatenate (quote string) ' \ - ' $(GCL_LTLD) ' \ - ' sys-ld))) ' \ + ' (compiler::*ld* $(GCL_LTLD))) ' \ '(compiler::link (quote ($(FASLS))) "lisp$(EXEEXT)" ' \ ' (format nil "(progn (let ((*load-path* (cons ~S *load-path*))'\ ' (si::*load-types* ~S)))' \ @@ -143,6 +140,8 @@ oa_keep_files = $(patsubst %,|%|,$(subst $(oa_comma), ,@oa_keep_files@)) edit = sed \ -e 's|@open_axiom_installdir[@]|$(open_axiom_installdir)|g' \ -e 's|@oa_optimize_options[@]|$(oa_optimize_options)|g' \ + -e 's|@CXX[@]|$(CXX)|g' \ + -e 's|@LDFLAGS[@]|$(LDFLAGS)|g' \ -e 's|@oa_editor[@]|$(oa_editor)|g' \ -e 's/@oa_keep_files[@]/$(oa_keep_files)/g' \ -e 's|@host[@]|$(host)|g' \ |