libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: .la file dependency_libs dropping sole -lm dependency


From: Bob Friesenhahn
Subject: Re: .la file dependency_libs dropping sole -lm dependency
Date: Wed, 31 Jan 2024 12:57:18 -0600 (CST)
User-agent: Alpine 2.20 (GSO 67 2015-01-07)

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 misunderstanding something, or is this a bug in libtool? What am I missing in order for this to work?

As further information on this issue, I tried using '-lm -lm' and there was no change in the results:

  # Libraries that this one depends upon.
  dependency_libs=' -L/usr/local/lib'


Then I tried using '-ljpeg -lm' and I see that the -ljpeg gets added, but not the -lm:

  # Libraries that this one depends upon.
  dependency_libs=' -L/usr/local/lib -ljpeg'


and then I tried using '-lm -jpeg', and I see that there are again no dependency libraries at all:

  # Libraries that this one depends upon.
  dependency_libs=' -L/usr/local/lib'

After testing various permutations, I see that anything starting with '-lm' gets removed in entirety.

This same thing happens under Ubuntu 20.04 LTS and Ubuntu 22.04 LTS.

Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
Public Key,     http://www.simplesystems.org/users/bfriesen/public-key.txt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]