[PATCH] wmifinfo: Use CC as default value for LD Makefile variable

3 views
Skip to first unread message

Torrance, Douglas

unread,
Oct 9, 2021, 9:46:57 AM10/9/21
to wmake...@googlegroups.com, Torrance, Douglas, Helmut Grohne
wmifinfo fails to cross build from source, because its Makefile uses
two variables (CC and LD) to supply the compiler, but dh_auto_build
only passes the former.

Authored-By: Helmut Grohne <hel...@subdivi.de>
Bug: https://bugs.debian.org/929758
---
wmifinfo/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wmifinfo/Makefile b/wmifinfo/Makefile
index 2cd03d1..1801aae 100644
--- a/wmifinfo/Makefile
+++ b/wmifinfo/Makefile
@@ -12,7 +12,7 @@ NAME=wmifinfo
VERSION=0.11

CC = gcc
-LD = gcc
+LD = $(CC)
INSTALL = install
CFLAGS = -Wall -O2
COPTS = -D'VERSION="$(VERSION)"' -D'NAME="$(NAME)"'
--
2.30.2
Reply all
Reply to author
Forward
0 new messages