openssl: backport fix for empty prefix from oe master

This fixes a build failure when ${prefix}="".

(From OE-Core rev: d82ed45d390f48b950cc490a055daa746f4a716a)

Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Phil Blundell 2011-05-17 13:35:37 +01:00 committed by Richard Purdie
parent 8197f4dd57
commit 8b32cd92a1
1 changed files with 5 additions and 1 deletions

View File

@ -89,7 +89,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 ${EXTRA_OECONF} shared --prefix=$useprefix --openssldir=${libdir}/ssl $target
}
do_compile () {