guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libgit2, libgit2-glib: pkg-config file: dependencies on other librar


From: Danny Milosavljevic
Subject: Re: libgit2, libgit2-glib: pkg-config file: dependencies on other libraries: how to represent them in Guix?
Date: Sat, 18 Jun 2016 11:10:37 +0200

On Sat, 18 Jun 2016 09:47:19 +0200
Ricardo Wurmus <address@hidden> wrote:

> This depends on the pkg-config file that the library installs.  If this
> file contains a section that lists other libraries as private, then
> propagation is probably the correct approach.

See <https://github.com/libgit2/libgit2/blob/master/libgit2.pc.in>

Name: libgit2
Description: The git library, take 2
Version: @LIBGIT2_VERSION_STRING@

Libs: -L"${libdir}" -lgit2
Libs.private: @LIBGIT2_PC_LIBS@
Requires.private: @LIBGIT2_PC_REQUIRES@

Cflags: -I${includedir}

And in the CMakeLists.txt :

        IF (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
                LIST(APPEND LIBGIT2_PC_LIBS "-lssl")
        ELSE()
                SET(LIBGIT2_PC_REQUIRES "${LIBGIT2_PC_REQUIRES} openssl")
        ENDIF ()

So I take it that it should have been a propagated-input in libgit2 itself 
already, right?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]