all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Adding GnuTLS to the Windows port
@ 2010-10-03 20:52 Juanma Barranquero
  2010-10-05  4:00 ` Juanma Barranquero
  0 siblings, 1 reply; 11+ messages in thread
From: Juanma Barranquero @ 2010-10-03 20:52 UTC (permalink / raw)
  To: Emacs developers

I've been working on compiling Emacs on Windows with GnuTLS support.

It works, but there are a few questions that should be decided before
I dig deeper into it.

Currently I can link Emacs against the static library libgnutls.a, or
use libgnutls.dll.a and have Emacs depend on libgnutls-26.dll (which
in turn brings libgcrypt-11, libpgp-error-0 and libtasn1-3).

Options:

1) Static linking
    Pros: no failure because of missing DLLs
    Contras: 5+MB, which won't be used by most Windows users; Emacs
tied to a specific version of GnuTLS.

2) Dynamic linking
    Pros: update of GnuTLS possible without recompiling
    Contras: the executable depends on the DLLs, even when dumping, so
failure to load if they are unavailable.

3) Dynamic loading (the same system used on image.c for the image libraries)
    Pros: most flexible; Emacs can run without the DLLs.
    Contras: code changes in gnutls.c to use function pointers (like image.c).

IMO, 3 is the best option, but it does not make sense to implement it
until the GnuTLS interface has stabilized, which I think it's a bit
far off yet. Opinions?

An additional question related to 3: it would make sense to rename
`image-library-alist' to `dynamic-library-alist' (with an obsolete
alias `image-library-alist'), move it to some other suitable .c file
(perhaps emacs.c?) and rewrite its doc to turn it into a more generic
facility.  It certainly would be handy to use it for (gnutls .
"libgnutls-26.dll"), and seems like a logical step.

BTW, the same question will have to be answered sooner or later for
xml.c / libxml2 and dbus.

    Juanma



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

end of thread, other threads:[~2010-10-07 18:09 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-03 20:52 Adding GnuTLS to the Windows port Juanma Barranquero
2010-10-05  4:00 ` Juanma Barranquero
2010-10-05  4:16   ` Christoph
2010-10-05 10:08     ` Juanma Barranquero
2010-10-05 11:46   ` Eli Zaretskii
2010-10-06 10:30     ` Juanma Barranquero
2010-10-06 11:52       ` Eli Zaretskii
2010-10-07  7:52       ` Stefan Monnier
2010-10-07 10:09         ` Juanma Barranquero
2010-10-07 14:06           ` Eli Zaretskii
2010-10-07 18:09             ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.