File: cross.patch

package info (click to toggle)
bioawk 1.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 380 kB
  • sloc: ansic: 5,519; yacc: 407; makefile: 119; awk: 80; sh: 57
file content (22 lines) | stat: -rw-r--r-- 630 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Compile maketab with build compiler, since it executes during build time - the generated proctab.c does not seem to vary across arches
Author: Nilesh Patra <nilesh@debian.org>
Last-Update: 2021-03-17
--- a/Makefile
+++ b/Makefile
@@ -23,6 +23,7 @@
 # ****************************************************************/
 
 CC = gcc
+CC_FOR_BUILD ?= $(CC)
 
 YACC = bison -y
 YFLAGS = -d
@@ -53,7 +54,7 @@
 	./maketab >proctab.c
 
 maketab:	ytab.h maketab.c
-	$(CC) $(CFLAGS) $(CPPFLAGS) maketab.c -o maketab $(LDFLAGS)
+	$(CC_FOR_BUILD) $(CFLAGS) $(CPPFLAGS) maketab.c -o maketab $(LDFLAGS)
 
 names:
 	@echo $(LISTING)