diff options
author | Danny Milosavljevic <dannym@scratchpost.org> | 2018-05-09 21:45:13 +0200 |
---|---|---|
committer | Danny Milosavljevic <dannym@scratchpost.org> | 2018-05-09 22:32:42 +0200 |
commit | 81abe370075188e718264dd76e7584c12adb482a (patch) | |
tree | 16cbf187a7a80c3bcad149da6a1808aa1b6a9176 /gnu | |
parent | 8bbf99ae25b5f45fe6d327fd4b0b3a809f61f112 (diff) | |
download | guix-81abe370075188e718264dd76e7584c12adb482a.tar.gz |
gnu: liblog: Build library correctly.
* gnu/packages/android.scm (liblog)[arguments]<#:make-flags>: Add LDLIBS. <#:phases>[ldconfig]: New phase.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/android.scm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm index 2da0a24f5c..2e5f1d5933 100644 --- a/gnu/packages/android.scm +++ b/gnu/packages/android.scm @@ -151,11 +151,16 @@ use their packages mostly unmodified in our Android NDK build system.") (build-system android-ndk-build-system) (arguments `(#:tests? #f ; TODO. - #:make-flags '("CC=gcc") + #:make-flags '("LDLIBS=-lpthread") #:phases (modify-phases %standard-phases (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/") (synopsis "Logging library from the Android platform.") (description "@code{liblog} represents an interface to the volatile Android |