[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #46225] Programs don't depend on libs in Makefiles
From: |
Thorsten Alteholz |
Subject: |
[bug #46225] Programs don't depend on libs in Makefiles |
Date: |
Mon, 15 Jan 2024 12:50:37 -0500 (EST) |
Follow-up Comment #1, bug#46225 (group gnuastro):
While looking at another bug, I also stumbled upon this issue.
When adding "-lgnuastro" to *_LDADD, this is used as a linker flag and just
passed to ld. When adding a direct path to libgnuastro.la, like
$(top_builddir)/lib/libgnuastro.la, the makefile is able to add a real
dependency. Now changes to libgnuastro.la will result in relinking of the
binaries in bin/*
Unfortunately this requires more CPU cycles as every binary has to be
relinked. But as this bug shows, this is the more expected behaviour of the
build process.
So I propose the commit at
https://git.alteholz.dev/alteholz/gnuastro/-/commit/f03990eafc362024d7248f3cda8a316ec02ab894
as a fix for this bug.
Any comments?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?46225>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #46225] Programs don't depend on libs in Makefiles,
Thorsten Alteholz <=