X-Loop: help-debbugs@HIDDEN
Subject: bug#8605: a libtool + Mac OS X problem
Resent-From: Peter Breitenlohner <peb@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Mon, 02 May 2011 15:42:02 +0000
Resent-Message-ID: <handler.8605.B.130435089613509 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 8605
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords:
To: 8605 <at> debbugs.gnu.org
Cc: Karl Berry <karl@HIDDEN>
X-Debbugs-Original-To: bug-libtool@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.130435089613509
(code B ref -1); Mon, 02 May 2011 15:42:02 +0000
Received: (at submit) by debbugs.gnu.org; 2 May 2011 15:41:36 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.69)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1QGvFg-0003Vq-DJ
for submit <at> debbugs.gnu.org; Mon, 02 May 2011 11:41:36 -0400
Received: from eggs.gnu.org ([140.186.70.92])
by debbugs.gnu.org with esmtp (Exim 4.69)
(envelope-from <peb@HIDDEN>) id 1QGvFe-0003Vf-Up
for submit <at> debbugs.gnu.org; Mon, 02 May 2011 11:41:35 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from <peb@HIDDEN>) id 1QGvFZ-0005hG-4A
for submit <at> debbugs.gnu.org; Mon, 02 May 2011 11:41:30 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level:
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD
autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:56192)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from <peb@HIDDEN>) id 1QGvFZ-0005hB-2U
for submit <at> debbugs.gnu.org; Mon, 02 May 2011 11:41:29 -0400
Received: from eggs.gnu.org ([140.186.70.92]:47094)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from <peb@HIDDEN>) id 1QGvFY-00040i-7M
for bug-libtool@HIDDEN; Mon, 02 May 2011 11:41:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from <peb@HIDDEN>) id 1QGvFW-0005gi-QF
for bug-libtool@HIDDEN; Mon, 02 May 2011 11:41:27 -0400
Received: from smtp.mppmu.mpg.de ([134.107.24.58]:55863)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from <peb@HIDDEN>) id 1QGvFW-0005gR-DH
for bug-libtool@HIDDEN; Mon, 02 May 2011 11:41:26 -0400
Received: by smtp.mppmu.mpg.de (Postfix, from userid 998)
id CA2F1282840E; Mon, 2 May 2011 17:41:23 +0200 (CEST)
Received: from mail.mppmu.mpg.de (mail-6.mppmu.mpg.de [134.107.6.12])
(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
(No client certificate requested)
by smtp.mppmu.mpg.de (Postfix) with ESMTP id DC0C328283CB;
Mon, 2 May 2011 17:41:15 +0200 (CEST)
Received: from pcl321.mppmu.mpg.de (pcl321.mppmu.mpg.de [134.107.3.54])
by mail.mppmu.mpg.de (Postfix) with ESMTP id BC2751E9825A;
Mon, 2 May 2011 17:41:15 +0200 (CEST)
Received: from pcl321.mppmu.mpg.de (localhost [127.0.0.1])
by pcl321.mppmu.mpg.de (8.14.2/8.14.1) with ESMTP id p42FfFmS030718;
Mon, 2 May 2011 17:41:15 +0200
Received: from localhost (peb@localhost)
by pcl321.mppmu.mpg.de (8.14.2/8.14.2/Submit) with ESMTP id
p42FfF6X030713; Mon, 2 May 2011 17:41:15 +0200
X-Authentication-Warning: pcl321.mppmu.mpg.de: peb owned process doing -bs
Date: Mon, 2 May 2011 17:41:15 +0200 (CEST)
From: Peter Breitenlohner <peb@HIDDEN>
Message-ID: <alpine.LNX.2.00.1105021726380.17484@HIDDEN>
User-Agent: Alpine 2.00 (LNX 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -5.6 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.8 (-----)
Hi,
For a (static and/or shared) library libtool knows if and how that library
can be stripped, e.g.,
for linux (ELF in general?)
old_striplib="strip --strip-debug"
striplib="strip --strip-unneeded"
for mingw32 (cross)
old_striplib="i386-pc-mingw32-strip --strip-debug"
striplib="i386-pc-mingw32-strip --strip-unneeded"
for darwin
old_striplib="strip -S"
striplib="strip -x"
====================
When linking a program that wants to dlopen() an extension module, I use
"libtool --mode=link gcc ... --export dynamic", e.g.,
for linux
export_dynamic_flag_spec="\${wl}--export-dynamic"
for mingw32
export_dynamic_flag_spec="\${wl}--export-all-symbols"
for darwin
export_dynamic_flag_spec=""
with no effect on Mac OS X
====================
When I finally use "make install-strip" to install that program, that works
fine on linux, because the ELF binary knows the global symbols even when the
the binary has been stripped.
However, this fails on Mac OS X, there the binary should be stripped with
'strip -S -x' or some such to keep the global symbols and not with plain
'strip' as done via (Automake) "make install-strip".
And there may, of course, be other non-ELF systems with the same problem.
IMHO, in such cases libtool should create a wrapper script even when not
linking against uninstalled shared libraries, and that warpper script should
cause "libtool --mode=install install -s ..." to use the required options
for strip.
Regards
Peter Breitenlohner <peb@HIDDEN>
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Peter Breitenlohner <peb@HIDDEN> Subject: bug#8605: Acknowledgement (a libtool + Mac OS X problem) Message-ID: <handler.8605.B.130435089613509.ack <at> debbugs.gnu.org> References: <alpine.LNX.2.00.1105021726380.17484@HIDDEN> X-Gnu-PR-Message: ack 8605 X-Gnu-PR-Package: libtool Reply-To: 8605 <at> debbugs.gnu.org Date: Mon, 02 May 2011 15:42:02 +0000 Thank you for filing a new bug report with GNU. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-libtool@HIDDEN If you wish to submit further information on this problem, please send it to 8605 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 8605: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D8605 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.