all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: Adding GnuTLS to the Windows port
Date: Thu, 7 Oct 2010 12:09:43 +0200	[thread overview]
Message-ID: <AANLkTima=rtCGdj7tLF3H=RmTuwBTh+wCs_72tsPQBzT@mail.gmail.com> (raw)
In-Reply-To: <jwvpqvmphov.fsf-monnier+emacs@gnu.org>

On Thu, Oct 7, 2010 at 09:52, Stefan Monnier <monnier@iro.umontreal.ca> wrote:

> I'm not sure I understand the issue well enough to say much.

The issue is quite simple:

- On the Windows port we compile support to use several libraries as
DLLs, but these libraries aren't linked to the executable (i.e.,
loading Emacs does not load them) but dynamically at first use, by
determining whether the library (the file containing it) can be found
and loaded; one reason being that our "official" binary must be able
to work whether they are available or not.

- Originally we hardcoded the filenames of the libraries, checking
each name in turn; for example, for xpm, we tried "libxmp.dll", then
"xmp4.dll", etc.

- At some point, we added an alist to associate libraries with their
candidate filenames, to make it cleaner and also user-configurable.

- For historical reasons (as all of these libraries were for image
support) the alist variable was called `image-library-alist'.

And now the issue is that it is quite likely that we'll end using the
same variable for other kinds of libraries, like libxml2, GnuTLS, and
perhaps D-BUS or others. So `image-library-alist' is no longer a good
name. All my patch does is renaming it to `dynamic-library-alist' and
keeping the old name as an obsolete alias.

Note, BTW, that all the above comes from the Windows port, but there's
nothing Windows-specific in (image|dynamic)-library-alist. Any port
that does delayed dynamic loading can benefit from it.

> The only
> point I care about, really, is that such a change be made keeping in
> mind the likely future addition of a more general support for
> dynamic loading.

I cannot comment on that, as I know nothing about the future "general
support for dynamic loading", other than the legal issues that were
commented here a while ago. Care to elaborate (or point to some old
thread I've missed)?

    Juanma



  reply	other threads:[~2010-10-07 10:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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='AANLkTima=rtCGdj7tLF3H=RmTuwBTh+wCs_72tsPQBzT@mail.gmail.com' \
    --to=lekktu@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.