guix-devel
[Top][All Lists]
Advanced

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

static library


From: Vincent Legoll
Subject: static library
Date: Thu, 25 Aug 2016 16:57:38 +0200

Hello,

I'm trying to package & use a static library (not mine), but it looks like
the right "-L" parameter is not automagically passed to the user package
(where the lib is in (inputs ...))

something like the following:

(define-public a (package ...))
(define-public b (package ... (inputs `(("liba" ,a))) ...))

I tried to put the right -L into make-flags & configure-flags myself, but
it failed with error, I don't even know if I have to do that :

(define-public b (package ...
    (arguments
      `(#:make-flags (list (string-append "LDFLAGS=-L" ,a "/lib -la"))
        #:configure-flags (list (string-append "LDFLAGS=-L" ,a "/lib -la"))

this ended with:

ERROR: In procedure primitive-load:
ERROR: In procedure scm_lreadr: /gnu/store/*-guile-builder:1:5211:
Unknown # object: #\<

which is in this :

[...]
#:phases %standard-phases #:locale "en_US.utf8" #:configure-flags
(list (string-append "LDFLAGS=-L" #<package address@hidden
/home/vince/guix-packages/fifth.scm:40 503c780> "/lib -lurlmatch"))
[...]

I did find a use of static lib (apart from libgcc) in utils-linux but
nothing here seems special (even the *.a move looks optional)

Any help appreciated...

-- 
Vincent Legoll



reply via email to

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