aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-connectivity/bearssl/bearssl/0001-conf-Unix.mk-remove-fixed-command-definitions.patch
blob: 00be224990d218fba46c0f8f638fd7c1e372ae40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
From 4ba61c59d3488c263d106d486b656854a57ad79f Mon Sep 17 00:00:00 2001
From: Jens Rehsack <sno@netbsd.org>
Date: Thu, 13 Aug 2020 15:26:30 +0200
Subject: [PATCH 1/2] conf/Unix.mk: remove fixed command definitions

For cross compiling in Yocto or with appropriate SDKs, commands like
`$CC` are reasonably predefined.

Upstream-Status: Inappropriate

Signed-off-by: Jens Rehsack <sno@netbsd.org>
---
 conf/Unix.mk | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/conf/Unix.mk b/conf/Unix.mk
index 02f2b2b..05979fc 100644
--- a/conf/Unix.mk
+++ b/conf/Unix.mk
@@ -37,23 +37,19 @@ RM = rm -f
 MKDIR = mkdir -p
 
 # C compiler and flags.
-CC = cc
-CFLAGS = -W -Wall -Os -fPIC
 CCOUT = -c -o 
 
 # Static library building tool.
-AR = ar
 ARFLAGS = -rcs
 AROUT =
 
 # DLL building tool.
-LDDLL = cc
+LDDLL = $(CCLD)
 LDDLLFLAGS = -shared
 LDDLLOUT = -o 
 
 # Static linker.
-LD = cc
-LDFLAGS = 
+LD = $(CCLD)
 LDOUT = -o 
 
 # C# compiler; we assume usage of Mono.
@@ -63,7 +59,7 @@ RUNT0COMP = mono T0Comp.exe
 # Set the values to 'no' to disable building of the corresponding element
 # by default. Building can still be invoked with an explicit target call
 # (e.g. 'make dll' to force build the DLL).
-#STATICLIB = no
+STATICLIB = no
 #DLL = no
 #TOOLS = no
 #TESTS = no
-- 
2.17.1