From fd9a46695594c3cd836ecb7d959f03f605e69a2f Mon Sep 17 00:00:00 2001
|
From: Richard Purdie <richard.purdie@linuxfoundation.org>
|
Date: Fri, 30 Apr 2021 10:35:02 +0100
|
Subject: [PATCH] libxcrypt: Update to 4.4.19 release and fix symbol version
|
|
If you pass CFLAGS with a leading space, " " gets passed to popen and convinces
|
gcc to try and open a file called " ". This results in a confusing error message
|
like:
|
|
x86_64-pokysdk-linux-gcc: error: : No such file or directory
|
|
Avoid this by stripping empty elements out of CFLAGS.
|
|
Upstream-Status: Submitted [https://github.com/besser82/libxcrypt/pull/126]
|
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
---
|
build-aux/compute-symver-floor | 2 ++
|
1 file changed, 2 insertions(+)
|
|
diff --git a/build-aux/compute-symver-floor b/build-aux/compute-symver-floor
|
index 4ec82e1..8117342 100644
|
--- a/build-aux/compute-symver-floor
|
+++ b/build-aux/compute-symver-floor
|
@@ -36,6 +36,8 @@ sub preprocessor_check {
|
die "C compiler not available\n" unless @CC;
|
|
@CFLAGS = sh_split($ENV{CFLAGS} // q{});
|
+ # Remove empty elements, particularly leading ones which cause issues with popen below
|
+ @CFLAGS = grep {$_} @CFLAGS;
|
|
# Remove empty elements, particularly leading ones which
|
# cause issues with popen below.
|