From f725a81c0494aa40a5d6e5f1bd3ee43209da287b Mon Sep 17 00:00:00 2001 From: Phil Blundell Date: Sat, 13 Jun 2009 10:27:05 +0100 Subject: openssl: avoid empty PREFIX since this causes Configure to do the wrong thing --- recipes/openssl/openssl.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'recipes/openssl') diff --git a/recipes/openssl/openssl.inc b/recipes/openssl/openssl.inc index 2ec1d91e7a..e722db5d1a 100644 --- a/recipes/openssl/openssl.inc +++ b/recipes/openssl/openssl.inc @@ -73,7 +73,11 @@ do_configure () { esac # inject machine-specific flags sed -i -e "s|^\(\"$target\",\s*\"[^:]\+\):\([^:]\+\)|\1:${CFLAG}|g" Configure - perl ./Configure shared --prefix=${prefix} --openssldir=${libdir}/ssl $target + useprefix=${prefix} + if [ "x$useprefix" == "x" ]; then + useprefix=/ + fi + perl ./Configure shared --prefix=$useprefix --openssldir=${libdir}/ssl $target } do_compile () { -- cgit 1.2.3-korg