Re: How to make libtool to use the external linker to link only one shared library in a large project?

2019-05-23 Thread Thomas Jahns
On 5/23/19 3:04 PM, Thomas Jahns wrote: some MPI's its --shome:link and for others -link_info, you could then I meant --showme:link, of course. Thomas ___ https://lists.gnu.org/mailman/listinfo/libtool

Re: How to make libtool to use the external linker to link only one shared library in a large project?

2019-05-23 Thread Thomas Jahns
ually easier to use the mpicc wrapper, for almost any MPI it's equally possible to discover the libraries linked by mpicc. For some MPI's its --shome:link and for others -link_info, you could then add those instead of swapping CC. Regards, Thomas -- Thomas Jahns HD(CP)^2 Abteilung Anw

Re: Avoid -Wl,--whole-archive

2019-05-21 Thread Thomas Jahns
On 5/16/19 5:00 PM, Bob Friesenhahn wrote: Convenience libraries are evil.  Convenience libraries slow down your build process dramatically and they cause 'make' not to be aware of the actual underlying dependencies, so that it does much more work than is required each type you invoke 'make'. 

Re: GCC LTO options not correctly handled

2019-04-15 Thread Thomas Jahns
On 4/12/19 6:04 PM, Bob Friesenhahn wrote: On Fri, 12 Apr 2019, Laurent Stacul wrote: As I don't have the ownership on the project, I need to patch (and provide a patch upstream). But this can be tedious on big projects, so it would great if libtool don't filter the options like -fno-lto, -fno-

Re: Accounting for -rpath when libtool isn't helping

2019-02-07 Thread Thomas Jahns
ed setting something like CC='libtool cc' CFLAGS='--mode=compile -some -other -flags -youd -use' LDFLAGS='--mode=link -some -further -link -flags' ? Regards, Thomas -- Thomas Jahns HD(CP)^2 Abteilung Anwendungssoftware Deutsches Klimarechenzentrum GmbH Bundesstra

Re: Developing against $HOME/lib libraries and LD_LIBRARY_PATH

2017-11-30 Thread Thomas Jahns
Posting again, since at the first attempt I only sent directly to Paul. On 11/22/17 15:45, Paul "LeoNerd" Evans wrote: On Thu, 16 Nov 2017 14:49:01 -0500 Nick Bowler wrote: If that is not happening then maybe the libraries and/or programs are being linked incorrectly, or perhaps there's a bug

Re: binutils 2.28 breaking libtool for test programs when -no-install is used

2017-06-01 Thread Thomas Jahns
On 06/01/2017 11:09 AM, Vincent Lefevre wrote: On 2017-06-01 09:56:29 +0200, Thomas Jahns wrote: GCC doesn't generate binaries or shared libraries, ld does. Passing -Wl,-rpath,/path/to/dependency/lib But this is not automatic. When typing $CC program.c -o program -lmpfr -lgmp (wher

Re: binutils 2.28 breaking libtool for test programs when -no-install is used

2017-06-01 Thread Thomas Jahns
On 05/31/2017 01:15 PM, Vincent Lefevre wrote: On 2017-05-31 11:58:05 +0200, Thomas Jahns wrote: On 05/30/2017 06:30 PM, Vincent Lefevre wrote: On 2017-05-30 17:39:14 +0200, Thomas Jahns wrote: I repeat: don't set LD_LIBRARY_PATH, that's the real problem, libtool not working for you

Re: binutils 2.28 breaking libtool for test programs when -no-install is used

2017-05-31 Thread Thomas Jahns
On 05/30/2017 06:30 PM, Vincent Lefevre wrote: On 2017-05-30 17:39:14 +0200, Thomas Jahns wrote: I repeat: don't set LD_LIBRARY_PATH, that's the real problem, libtool not working for you is just a symptom of that. So, how can I make things work *automatically* under Linux witho

Re: binutils 2.28 breaking libtool for test programs when -no-install is used

2017-05-30 Thread Thomas Jahns
On 05/30/2017 12:02 PM, Vincent Lefevre wrote: Note that binutils 2.28 is breaking libtool for test programs ("make check") when -no-install is used. I've reported the following bug: https://sourceware.org/bugzilla/show_bug.cgi?id=21476 The problem is that with this version, RUNPATH is used i

Re: Writing Autoconf tests

2017-03-09 Thread Thomas Jahns
Hello, On 03/08/2017 08:51 PM, Yumiko wrote: How should I write my macro so that the test program is compiled and linked through the libtool program? I've used a macro, originally from TeX-Live, that I extended for Fortran and which simply changes the compiler etc. to use libtool. I found t

Re: How can I keep -lstdc++ out of $postdeps?

2017-02-23 Thread Thomas Jahns
On 02/23/2017 05:01 PM, Jack Bates wrote: On 22/02/17 12:16 PM, Mike Frysinger wrote: On 22 Feb 2017 10:32, Jack Bates wrote: How can I avoid dynamically linking with libstdc++? or, how can I keep -lstdc++ out of $postdeps? let's back up. what is it you're actually trying to do ? you want to

Re: Plus characters ("++") in library name

2017-01-02 Thread Thomas Jahns
On 01/02/2017 10:14 AM, c...@roberthairgrove.com wrote: I tried removing "argppbaseimpl.hpp" from the library's __la_SOURCES list. The tar ball was created, but that file was missing from it. I cannot add it to include_HEADERS because it should not be installed in /usr/local/include (it's a priva

Preserve ordering of GNU ld library grouping flags

2016-10-31 Thread Thomas Jahns
01fe8e27da2cbebfe2db79606e7bb846554a6863 Mon Sep 17 00:00:00 2001 From: Thomas Jahns Date: Mon, 31 Oct 2016 11:08:43 +0100 Subject: [PATCH] Fix handling of flags for GNU ld library grouping. * -Wl,--start-group -Wl,--end-group -Wl,-\( -Wl,-) must preserve their respective position within the list of libraries