unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Vincent Legoll <vincent.legoll@gmail.com>
To: guix-devel <guix-devel@gnu.org>
Subject: static library
Date: Thu, 25 Aug 2016 16:57:38 +0200	[thread overview]
Message-ID: <CAEwRq=qz9xbfxznv=tGTwpGCgjSNPyxYkx3B5LL2OCbdMYh7sw@mail.gmail.com> (raw)

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 urlmatch@1.0
/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	other threads:[~2016-08-25 14:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-25 14:57 Vincent Legoll [this message]
2016-08-28 19:35 ` static library Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAEwRq=qz9xbfxznv=tGTwpGCgjSNPyxYkx3B5LL2OCbdMYh7sw@mail.gmail.com' \
    --to=vincent.legoll@gmail.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).