Created attachment 758703 [details, diff] patch to fix ldflags overriding lshw has some *interesting* handwritten Makefiles - src/gui/Makefile:21 resets LDFLAGS, because previously in src/Makefile:33 there's LDFLAGS+=-L./core/ The attached patch moves the -L into LIBS instead & fixes some related handling
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21a5b70c1df92f2cee5a4d655e1cc01a3c128e97 commit 21a5b70c1df92f2cee5a4d655e1cc01a3c128e97 Author: Ben Kohler <bkohler@gentoo.org> AuthorDate: 2021-12-13 15:17:06 +0000 Commit: Ben Kohler <bkohler@gentoo.org> CommitDate: 2021-12-13 15:17:39 +0000 sys-apps/lshw: respect LDFLAGS Closes: https://bugs.gentoo.org/829001 Package-Manager: Portage-3.0.29, Repoman-3.0.3 Signed-off-by: Ben Kohler <bkohler@gentoo.org> .../lshw/files/lshw-02.19.2b-respect-LDFLAGS.patch | 33 +++++++++ sys-apps/lshw/lshw-02.19.2b_p20210121-r2.ebuild | 83 ++++++++++++++++++++++ 2 files changed, 116 insertions(+)