#250 Inconsistency in ordering of libraries when linking

Stable_release
closed
nobody
None
1
2013-03-03
2013-01-13
Anonymous
No

Some toolchains are sensitive to the ordering of libraries when linking.

In compile.lsp.in the ordering is:
(setf c::ld-flags
"@LDFLAGS@ @LIBPREFIX@ecl.@LIBEXT@ @CORE_LIBS@ @LIBS@ @FASL_LIBS@")

But cmpdefs.lsp has:
(defvar ld-flags "@LDFLAGS@ -lecl @CORE_LIBS@ @FASL_LIBS@ @LIBS@")

If think the ordering in cmpdefs.lsp is the correct one. Otherwise if for example specifying a different path for libgc using LIBS you end up having libgc linked in before ecl libraries.

Discussion


Anonymous


Cancel   Add attachments