diff options
author | Gustavo Zacarias <gustavo@zacarias.com.ar> | 2014-01-09 20:20:14 -0300 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2014-01-10 15:40:21 +0100 |
commit | e85696b9bf8733a94e9a9548c930ab15c38bef5a (patch) | |
tree | 728e7f4917c0f200e4ef892fca204ec81e7b70e2 | |
parent | dec1a14687ec6b064147e978b25287df71ca15bf (diff) | |
download | buildroot-e85696b9bf8733a94e9a9548c930ab15c38bef5a.tar.gz buildroot-e85696b9bf8733a94e9a9548c930ab15c38bef5a.zip |
openssl: fix bug #6770
openssl 1.0.1f Makefile.org doesn't quote $(CC) when passing the
parameter in another invocation of make, hence breaking when the
compiler string contains a space with multiple strings (for example with
ccache).
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r-- | package/openssl/openssl-003-quote-cc.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/package/openssl/openssl-003-quote-cc.patch b/package/openssl/openssl-003-quote-cc.patch new file mode 100644 index 0000000000..2c035d917d --- /dev/null +++ b/package/openssl/openssl-003-quote-cc.patch @@ -0,0 +1,21 @@ +From 9aef04d9baa0a4bb5b8db92e9ab93b0a857a7659 Mon Sep 17 00:00:00 2001 +From: Gustavo Zacarias <gustavo@zacarias.com.ar> +Date: Thu, 9 Jan 2014 20:08:04 -0300 +Subject: [PATCH] Makefile.org: enclose CC parameter passing in quotes + +The compiler invocation might contain a space like when using ccache. + +Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> + +diff -Nura openssl-1.0.1f.orig/Makefile.org openssl-1.0.1f/Makefile.org +--- openssl-1.0.1f.orig/Makefile.org 2014-01-09 19:57:23.324040960 -0300 ++++ openssl-1.0.1f/Makefile.org 2014-01-09 20:11:23.821070726 -0300 +@@ -302,7 +302,7 @@ + FIPSLD_CC="$(CC)"; CC=$(FIPSDIR)/bin/fipsld; \ + export CC FIPSLD_CC FIPSLD_LIBCRYPTO; \ + fi; \ +- $(MAKE) -e SHLIBDIRS=crypto CC=$${CC:-$(CC)} build-shared; \ ++ $(MAKE) -e SHLIBDIRS=crypto CC="$${CC:-$(CC)}" build-shared; \ + touch -c fips_premain_dso$(EXE_EXT); \ + else \ + echo "There's no support for shared libraries on this platform" >&2; \ |