Avoid linking in ${prefix}/lib/ecl/libecl*

This commit is contained in:
jjgarcia 2003-10-10 13:17:15 +00:00
parent 62497253c1
commit 8b13dff308

View file

@ -57,8 +57,17 @@ ar -x ../@LIBPREFIX@clos.@LIBEXT@; for i in *.@OBJEXT@; do mv $i lsp_$i; done; a
@RANLIB@ ../@LIBPREFIX@ecl.@LIBEXT@; ~
cd ..; rm -rf tmp/* @LIBPREFIX@{lsp,clos} "))
;;
;; Notice that we must explicitely mention libecl.so/ecl.dll instead
;; of using -lecl. This is to avoid interference with an already
;; installed copy of ECL.
;;
(setf c::*ld-flags* "@LDRPATH@ @SHAREDPREFIX@ecl.@SHAREDEXT@ @CLIBS@")
#+dlopen
;;
;; We do not need the -rpath flag for the library, nor -lecl.
;;
(let ((c::*ld-flags* "@CLIBS@"))
(c::shared-cc (compile-file-pathname "ecl" :type :dll)
"c/main.@OBJEXT@"