aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/openssl
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2009-06-13 10:27:05 +0100
committerPhil Blundell <philb@gnu.org>2009-06-13 10:27:05 +0100
commitf725a81c0494aa40a5d6e5f1bd3ee43209da287b (patch)
tree036264351df31e73c18792eec6f643a9f6104152 /recipes/openssl
parentae82ac27d6cdd1084941dab14b9ff04e19210bae (diff)
downloadopenembedded-f725a81c0494aa40a5d6e5f1bd3ee43209da287b.tar.gz
openssl: avoid empty PREFIX since this causes Configure to do the wrong thing
Diffstat (limited to 'recipes/openssl')
-rw-r--r--recipes/openssl/openssl.inc6
1 files changed, 5 insertions, 1 deletions
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 () {