aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core/openjdk/patches-openjdk-14/0002-make-autoconf-toolchain-remove-invalid-compiler-chec.patch
blob: 9997e708e1992ea864a5589bfa0cc6468edef7b9 (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
From 93a94cd79b5657bc7954a23d6d3f9eda0addf773 Mon Sep 17 00:00:00 2001
From: Richard Leitner <richard.leitner@skidata.com>
Date: Wed, 13 May 2020 13:41:49 +0200
Subject: [PATCH 2/2] make: autoconf: toolchain: remove invalid compiler
 checking

The checking of CC and CXX was faulty as it doesn't supported
program arguments.
To make things work remove the check and trust it is valid.

Upstream-Status: Inappropriate [configuration]
Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
---
 make/autoconf/toolchain.m4 | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/make/autoconf/toolchain.m4 b/make/autoconf/toolchain.m4
index 341b2d1786..24f9f03948 100644
--- a/make/autoconf/toolchain.m4
+++ b/make/autoconf/toolchain.m4
@@ -526,21 +526,6 @@ AC_DEFUN([TOOLCHAIN_FIND_COMPILER],
   if test "x[$]$1" != x; then
     # User has supplied compiler name already, always let that override.
     AC_MSG_NOTICE([Will use user supplied compiler $1=[$]$1])
-    if test "x`basename [$]$1`" = "x[$]$1"; then
-      # A command without a complete path is provided, search $PATH.
-
-      AC_PATH_PROGS(POTENTIAL_$1, [$]$1)
-      if test "x$POTENTIAL_$1" != x; then
-        $1=$POTENTIAL_$1
-      else
-        AC_MSG_ERROR([User supplied compiler $1=[$]$1 could not be found])
-      fi
-    else
-      # Otherwise it might already be a complete path
-      if test ! -x "[$]$1"; then
-        AC_MSG_ERROR([User supplied compiler $1=[$]$1 does not exist])
-      fi
-    fi
   else
     # No user supplied value. Locate compiler ourselves.
 
-- 
2.26.2