Skip to content
Snippets Groups Projects
Unverified Commit 81abe370 authored by Danny Milosavljevic's avatar Danny Milosavljevic
Browse files

gnu: liblog: Build library correctly.

* gnu/packages/android.scm (liblog)[arguments]<#:make-flags>: Add LDLIBS.
<#:phases>[ldconfig]: New phase.
parent 8bbf99ae
No related branches found
No related tags found
No related merge requests found
...@@ -151,11 +151,16 @@ (define liblog ...@@ -151,11 +151,16 @@ (define liblog
(build-system android-ndk-build-system) (build-system android-ndk-build-system)
(arguments (arguments
`(#:tests? #f ; TODO. `(#:tests? #f ; TODO.
#:make-flags '("CC=gcc") #:make-flags '("LDLIBS=-lpthread")
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'enter-source (add-after 'unpack 'enter-source
(lambda _ (chdir "liblog") #t))))) (lambda _ (chdir "liblog") #t))
(add-after 'install 'ldconfig
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(symlink "liblog.so.0" (string-append out "/lib/liblog.so"))
#t))))))
(home-page "https://developer.android.com/") (home-page "https://developer.android.com/")
(synopsis "Logging library from the Android platform.") (synopsis "Logging library from the Android platform.")
(description "@code{liblog} represents an interface to the volatile Android (description "@code{liblog} represents an interface to the volatile Android
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment