unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Building a library as both static and dynamic
@ 2020-09-27 11:57 Greg Hogan
  2020-09-29  5:09 ` Efraim Flashner
  2020-10-05 13:39 ` Ludovic Courtès
  0 siblings, 2 replies; 3+ messages in thread
From: Greg Hogan @ 2020-09-27 11:57 UTC (permalink / raw)
  To: guix-devel

Is there a best practice or example for building a library twice, both static and dynamic? I submitted patch #43620, and in working on another library have the same issue. These are cmake builds with a parameter declaration for either a static or dynamic build, not both. I would like to create a single package with both “out” and “static” outputs, which looks to be standard across Guix.

One idea is to run the configure / make / make install phases twice. modify-phases does not currently support copying phases (though add-after could work with the right function reference from cmake-build) and #:configure-flags would need to be set differently.

Another option would be to patch the source build files, but this problem feels solvable in Guix without duplicating the code from cmake-build’s configure.

Thanks,
Greg

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-05 13:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-27 11:57 Building a library as both static and dynamic Greg Hogan
2020-09-29  5:09 ` Efraim Flashner
2020-10-05 13:39 ` Ludovic Courtès

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).