1From 4ba61c59d3488c263d106d486b656854a57ad79f Mon Sep 17 00:00:00 2001
2From: Jens Rehsack <sno@netbsd.org>
3Date: Thu, 13 Aug 2020 15:26:30 +0200
4Subject: [PATCH 1/2] conf/Unix.mk: remove fixed command definitions
5
6For cross compiling in Yocto or with appropriate SDKs, commands like
7`$CC` are reasonably predefined.
8
9Upstream-Status: Inappropriate
10
11Signed-off-by: Jens Rehsack <sno@netbsd.org>
12---
13 conf/Unix.mk | 10 +++-------
14 1 file changed, 3 insertions(+), 7 deletions(-)
15
16diff --git a/conf/Unix.mk b/conf/Unix.mk
17index 02f2b2b..05979fc 100644
18--- a/conf/Unix.mk
19+++ b/conf/Unix.mk
20@@ -37,23 +37,19 @@ RM = rm -f
21 MKDIR = mkdir -p
22
23 # C compiler and flags.
24-CC = cc
25-CFLAGS = -W -Wall -Os -fPIC
26 CCOUT = -c -o
27
28 # Static library building tool.
29-AR = ar
30 ARFLAGS = -rcs
31 AROUT =
32
33 # DLL building tool.
34-LDDLL = cc
35+LDDLL = $(CCLD)
36 LDDLLFLAGS = -shared
37 LDDLLOUT = -o
38
39 # Static linker.
40-LD = cc
41-LDFLAGS =
42+LD = $(CCLD)
43 LDOUT = -o
44
45 # C# compiler; we assume usage of Mono.
46@@ -63,7 +59,7 @@ RUNT0COMP = mono T0Comp.exe
47 # Set the values to 'no' to disable building of the corresponding element
48 # by default. Building can still be invoked with an explicit target call
49 # (e.g. 'make dll' to force build the DLL).
50-#STATICLIB = no
51+STATICLIB = no
52 #DLL = no
53 #TOOLS = no
54 #TESTS = no
55--
562.17.1
57
58