Skip to content

Commit

Permalink
Unbreak pkg-config detection of python.
Browse files Browse the repository at this point in the history
pkg-config:cflags and pkg-config:libs return lists, not strings.
Also it looks like when I added the pkg-config support,
I misspelled Python.h.
  • Loading branch information
CMB committed Jan 29, 2023
1 parent caec6c6 commit fddb1e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.scm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
(define (python-pkg-config-test package)
(and-let* ((cflags (pkg-config:cflags package))
(libs (pkg-config:libs package)))
(python-test ("<python.h>" cflags libs))))
(python-test ("<Python.h>" (string-join cflags " " 'infix) (string-join libs " " 'infix)))))

(define cpp+ld-options
(let ((cflags (get-environment-variable "PYTHON_CFLAGS"))
Expand Down

0 comments on commit fddb1e3

Please sign in to comment.