Skip to content

Commit

Permalink
[fix] lookup both lib-dynload and lib
Browse files Browse the repository at this point in the history
  • Loading branch information
digikar99 committed May 9, 2024
1 parent 8e58612 commit a0e015b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/config-darwin.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ print(f'(:base-exec-prefix \\\"{sys.base_exec_prefix}\\\"' +
(defun configure ()
(let* ((ps (python-system))
(prefix (getf ps :base-exec-prefix))
(path (format nil "~A/" prefix))
(path (format nil "~A" prefix))
(search-path (getf ps :exec-prefix))
(python-version (ppcre:register-groups-bind (version)
("^.+\/(.+)?$" prefix :sharedp t)
Expand All @@ -38,17 +38,17 @@ print(f'(:base-exec-prefix \\\"{sys.base_exec_prefix}\\\"' +
"gcc ~A -c -Wall -Werror -fpic py4cl-utils.c && "
(format
nil
"gcc -L'~A/lib-dynload' -framework CoreFoundation -dynamiclib -o libpy4cl-utils.dylib py4cl-utils.o -lpython~A"
path python-version))
"gcc -L'~A/lib-dynload' -L'~A/lib' -framework CoreFoundation -dynamiclib -o libpy4cl-utils.dylib py4cl-utils.o -lpython~A"
path path python-version))

py4cl2-cffi/config:*python-numpy-compile-command*
(concatenate
'string
"gcc ~A -I'~A' -c -Wall -Werror -fpic py4cl-numpy-utils.c && "
(format
nil
"gcc -L'~A/lib-dynload' -framework CoreFoundation -dynamiclib -o libpy4cl-numpy-utils.dylib py4cl-numpy-utils.o -lpython~A"
path python-version)))))
"gcc -L'~A/lib-dynload' -L'~A/lib' -framework CoreFoundation -dynamiclib -o libpy4cl-numpy-utils.dylib py4cl-numpy-utils.o -lpython~A"
path path python-version)))))



Expand Down

0 comments on commit a0e015b

Please sign in to comment.