From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sascha Wilde Newsgroups: gmane.emacs.devel Subject: Re: EDE: make project shared objects Date: Fri, 30 Oct 2009 14:06:58 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1256913360 8572 80.91.229.12 (30 Oct 2009 14:36:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Oct 2009 14:36:00 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 30 15:35:53 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N3sZy-0004Ye-UF for ged-emacs-devel@m.gmane.org; Fri, 30 Oct 2009 15:35:51 +0100 Original-Received: from localhost ([127.0.0.1]:54693 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3sZy-00050Z-AT for ged-emacs-devel@m.gmane.org; Fri, 30 Oct 2009 10:35:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3rC3-0001R5-Qf for emacs-devel@gnu.org; Fri, 30 Oct 2009 09:07:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3rC1-0001Qi-9l for emacs-devel@gnu.org; Fri, 30 Oct 2009 09:07:02 -0400 Original-Received: from [199.232.76.173] (port=57001 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3rC1-0001Qc-5U for emacs-devel@gnu.org; Fri, 30 Oct 2009 09:07:01 -0400 Original-Received: from mail2.sha-bang.de ([78.47.120.114]:38098 helo=mail.sha-bang.de) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N3rC0-0000GQ-Iw for emacs-devel@gnu.org; Fri, 30 Oct 2009 09:07:00 -0400 Original-Received: from kenny.sha-bang.local (xdslca095.osnanet.de [89.166.128.95]) by mail.sha-bang.de (Postfix) with ESMTPSA id 96C5054E for ; Fri, 30 Oct 2009 14:06:59 +0100 (CET) Original-Received: from wilde by kenny.sha-bang.local with local (Sha Bang MUA v.0711184.68) ID 1N3rBy-0002QB-Vy for emacs-devel@gnu.org; Fri, 30 Oct 2009 14:06:58 +0100 In-Reply-To: (Sascha Wilde's message of "Thu, 29 Oct 2009 16:01:00 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:116460 Archived-At: Sascha Wilde 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