package/botan: avoid empty -l
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 21 Feb 2021 17:59:02 +0000 (18:59 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Thu, 25 Feb 2021 21:58:22 +0000 (22:58 +0100)
Add upstream patch to fix upstream commit
af63fe89228172e5a395f7e6491fae3bfa9da4b1 which was added to buildroot in
commit d71de4143d7a8554929f2a1e9731f83a4cf85fd3

Fixes:
 - http://autobuild.buildroot.org/results/801007860b7787b28b2b2e3611b59350034a3694

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/botan/0002-Avoid-empty-l.patch [new file with mode: 0644]

diff --git a/package/botan/0002-Avoid-empty-l.patch b/package/botan/0002-Avoid-empty-l.patch
new file mode 100644 (file)
index 0000000..9102360
--- /dev/null
@@ -0,0 +1,25 @@
+From 4b2225ea54988e09b649768848b3c14b43e064de Mon Sep 17 00:00:00 2001
+From: Jack Lloyd <jack@randombit.net>
+Date: Mon, 15 Feb 2021 15:11:12 -0500
+Subject: [PATCH] Avoid empty -l
+
+[Retrieved from:
+https://github.com/randombit/botan/commit/4b2225ea54988e09b649768848b3c14b43e064de]
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ configure.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.py b/configure.py
+index 865a6c8e62..a79f672eca 100755
+--- a/configure.py
++++ b/configure.py
+@@ -2027,7 +2027,7 @@ def extra_libs(libs, cc):
+         if libs is None:
+             return ''
+-        return ' '.join([(cc.add_lib_option % lib) for lib in libs.split(',')])
++        return ' '.join([(cc.add_lib_option % lib) for lib in libs.split(',') if lib != ''])
+     variables = {
+         'version_major':  Version.major(),