Skip to content

Commit

Permalink
Switch to new COMPILER:*USER-LINKER-LIBS* to link DuckDB via ECL
Browse files Browse the repository at this point in the history
Replaces COMPILER:*USER-LD-FLAGS*
  • Loading branch information
ak-coram committed Sep 17, 2023
1 parent af8fb66 commit c1817f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions ECL.org
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ This can be enabled automatically using environment variables:
Alternatively the following can be used instead:

#+begin_src lisp
;; Tell the linker to link with DuckDB (up to ECL-21.2.1, later
;; versions should use COMPILER:*USER-LINKER-LIBS* instead):
(setf compiler:*user-ld-flags* "-lduckdb")
;; Tell the linker to link with DuckDB:
(setf compiler:*user-linker-libs* "-lduckdb")

;; CFFI needs to be loaded first:
(ql:quickload :cffi)
Expand Down
8 changes: 4 additions & 4 deletions duckdb-ecl-sffi.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
(concatenate 'string
" -L"
(uiop:escape-sh-token library-path)))))
(setf compiler:*user-ld-flags* (concatenate 'string compiler:*user-ld-flags*
(when quoted-search-arg
quoted-search-arg)
" -lduckdb"))
(setf compiler:*user-linker-libs* (concatenate 'string compiler:*user-linker-libs*
(when quoted-search-arg
quoted-search-arg)
" -lduckdb"))
(setf cffi-sys:*cffi-ecl-method* :c/c++)))

0 comments on commit c1817f5

Please sign in to comment.