.la file dependency_libs dropping sole -lm dependency

2024-01-31 Thread Bob Friesenhahn
I am encountering an issue when building a static build of GraphicsMagick in that although -lm is supplied to libtool while linking the static library, the associated .la file is missing -lm in dependency_libs. If several more libraries are specified (also including -lm) then they all seem to

Add missing sysroot to library path ?

2024-01-31 Thread Joakim Tjernlund
Has some variant of https://lists.gnu.org/archive/html/libtool-patches/2022-04/msg00010.html been discussed/considered ? Joakim

Re: Add missing sysroot to library path ?

2024-01-31 Thread Ileana Dumitrescu
On 31/01/2024 17:15, Joakim Tjernlund wrote: Has some variant of https://lists.gnu.org/archive/html/libtool-patches/2022-04/msg00010.html been discussed/considered ? Joakim The patchset seems good, and that particular patch was most likely forgotten about. I'll look through the thread and

Re: .la file dependency_libs dropping sole -lm dependency

2024-01-31 Thread Bob Friesenhahn
On Wed, 31 Jan 2024, Bob Friesenhahn wrote: bin/bash ./libtool --tag=CXX --mode=link g++-10 -no-undefined -export-symbols-regex ".*" -version-info 27:4:24 -L/usr/local/lib -Wl,-rpath,/usr/local/lib -o magick/libGraphicsMagick.la -rpath /usr/local/lib [ list of .lo files ] -lm An I misunde

Re: .la file dependency_libs dropping sole -lm dependency

2024-01-31 Thread Ileana Dumitrescu
On 31/01/2024 20:57, Bob Friesenhahn wrote: On Wed, 31 Jan 2024, Bob Friesenhahn wrote: bin/bash ./libtool  --tag=CXX --mode=link g++-10 -no-undefined -export-symbols-regex ".*"  -version-info 27:4:24 -L/usr/local/lib -Wl,-rpath,/usr/local/lib -o magick/libGraphicsMagick.la -rpath /usr/loc

Re: .la file dependency_libs dropping sole -lm dependency

2024-01-31 Thread Ileana Dumitrescu
On 31/01/2024 17:33, Bob Friesenhahn wrote: The libtool used reports itself as   % /usr/local/bin/libtool --version   libtool (GNU libtool) 2.4.7   Written by Gordon Matzigkeit, 1996   Copyright (C) 2014 Free Software Foundation, Inc. which I think is confusing since the tarball date is

Re: .la file dependency_libs dropping sole -lm dependency

2024-01-31 Thread Bob Friesenhahn
Well this definitely looks like a bug. I can't imagine any reason that would be correct. I'm trying to reproduce it now, with GraphicsMagick. I filed a bug [1]. Thanks for the detailed report! Thank you very much for volunteering to be a libtool maintainer. You would need latest GraphicsMagic