unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Sascha Wilde <wilde@sha-bang.de>
To: emacs-devel@gnu.org
Subject: Re: EDE: make project shared objects
Date: Fri, 30 Oct 2009 14:06:58 +0100	[thread overview]
Message-ID: <m2hbthav4d.fsf@sha-bang.de> (raw)
In-Reply-To: <m2ljiuckib.fsf@sha-bang.de> (Sascha Wilde's message of "Thu, 29 Oct 2009 16:01:00 +0100")

Sascha Wilde <wilde@sha-bang.de> wrote:

> The following patch addresses a bunch of issues: 
[...]
Another important issue with the current code (inkluding my fixes) is,
that it only generates static libraries.

Fixing this is not trivial -- its not really hard either but it needs
some additional infrastructure:

The Makefile created by EDE make projects doesn't have any
infrastructure for installation (by convention this would be an PREFIX
variable and an install target).  But to create shared libraries libtool
needs an -rpath option, which would be normally set $(PREFIX)/lib.

Further more: the best/easiest way to install shared libraries and
dynamically linked programs is using libtool, too[0] -- so we need an
install make target, calling libtool in the right way.

> FWIW: Linking against libs in make projects still doesn't work.  I'll
> have a look t this next...

It would be best to use libtool for linking programs, too -- at least
when they are linked against shared libraries which are part of the
project.  But this also makes only sense with an install target.

sascha

[0] libtool hides the real stuff in an hidden directory .libs and
    installs only wrapper scripts in the source directory, this allows
    to test drive dynamically linked applications in the source
    directory but makes the right way of manual installation less
    obvious.
-- 
Sascha Wilde
We're Germans and we use Unix. That's a combination of two 
demographic groups known to have no sense of humour whatsoever.
  -- Hanno Mueller in de.comp.os.unix.programming




  parent reply	other threads:[~2009-10-30 13:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-29 15:01 EDE: make project shared objects Sascha Wilde
2009-10-30 11:36 ` Lluis
2009-10-30 13:06 ` Sascha Wilde [this message]
2009-10-30 18:53   ` Stefan Monnier
2009-10-31  5:30     ` Miles Bader
2009-10-31 12:07       ` Sascha Wilde
2009-10-31 12:14     ` Eric M. Ludlam

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://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=m2hbthav4d.fsf@sha-bang.de \
    --to=wilde@sha-bang.de \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.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).