File: 1020-cross-build.patch

package info (click to toggle)
t2n 0.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 328 kB
  • sloc: cpp: 1,360; makefile: 64; ansic: 49; xml: 18
file content (20 lines) | stat: -rw-r--r-- 824 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Avoid hardcoded gcc in Makefile to allow cross-building
Author: Helmut Grohne
Forwarded: no
Bugs-Debian: https://bugs.debian.org/928898
Reviewed-By: Petter Reinholdtsen <pere@debian.org>
Last-Update: 2021-09-25
===
Index: t2n-git/Makefile
===================================================================
--- t2n-git.orig/Makefile	2024-04-15 18:08:27.366088476 +0200
+++ t2n-git/Makefile	2024-04-15 18:08:36.406192576 +0200
@@ -41,7 +41,7 @@
      $(OBJDIR)/ezargs.o 
 
 $(OBJDIR)/usbscan: $(SRCDIR)/usbscan.c
-	gcc $(CFLAGS) -Wno-unused-but-set-variable $(LDFLAGS) $(SRCDIR)/usbscan.c $(LIBS) -o $(OBJDIR)/usbscan
+	$(CC) $(CFLAGS) -Wno-unused-but-set-variable $(LDFLAGS) $(SRCDIR)/usbscan.c $(LIBS) -o $(OBJDIR)/usbscan
 
 $(OBJDIR)/$(MAIN) : $(OBJS)
 	$(LK) $(LDFLAGS) $(OBJS) $(LIBS) -o $(OBJDIR)/$(MAIN)