gnu: clog: Add "-DUSE_SYSTEM_LIBS=ON" configure flag.

* gnu/packages/parallel.scm (clog)[arguments]: Add "-DUSE_SYSTEM_LIBS=ON"
to #:configure-flags.
* gnu/packages/patches/clog-fix-shared-build.patch: Adjust patch.
This commit is contained in:
David Elsing 2024-03-23 22:04:54 +00:00 committed by Ludovic Courtès
parent ab6e8ecbb5
commit bec16cc910
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5
2 changed files with 12 additions and 40 deletions

View file

@ -536,11 +536,14 @@ processor name, cache information, and topology information.")
(inherit (package-source cpuinfo))
(patches (search-patches "clog-fix-shared-build.patch"))))
(arguments
(list #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON")
#:phases #~(modify-phases %standard-phases
(add-after 'unpack 'chdir
(lambda _
(chdir "deps/clog"))))))
(list
#:configure-flags
''("-DBUILD_SHARED_LIBS=ON"
"-DUSE_SYSTEM_LIBS=ON")
#:phases #~(modify-phases %standard-phases
(add-after 'unpack 'chdir
(lambda _
(chdir "deps/clog"))))))
(native-inputs (list googletest))
(inputs '())
(synopsis "C-style logging library based on printf")