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:
parent
8197f4dd57
commit
8b32cd92a1
|
@ -89,7 +89,11 @@ do_configure () {
|
||||||
esac
|
esac
|
||||||
# inject machine-specific flags
|
# inject machine-specific flags
|
||||||
sed -i -e "s|^\(\"$target\",\s*\"[^:]\+\):\([^:]\+\)|\1:${CFLAG}|g" Configure
|
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 () {
|
do_compile () {
|
||||||
|
|
Loading…
Reference in New Issue