all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: Emacs developers <emacs-devel@gnu.org>
Subject: Adding GnuTLS to the Windows port
Date: Sun, 3 Oct 2010 22:52:16 +0200	[thread overview]
Message-ID: <AANLkTi=htKJC8JYLb3pVxScQ7VBnhWnhErt_1YLaf_9+@mail.gmail.com> (raw)

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



             reply	other threads:[~2010-10-03 20:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-03 20:52 Juanma Barranquero [this message]
2010-10-05  4:00 ` Adding GnuTLS to the Windows port 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

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

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

  git send-email \
    --in-reply-to='AANLkTi=htKJC8JYLb3pVxScQ7VBnhWnhErt_1YLaf_9+@mail.gmail.com' \
    --to=lekktu@gmail.com \
    --cc=emacs-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 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.