diff options
author | Phil Blundell <philb@gnu.org> | 2009-06-13 10:27:05 +0100 |
---|---|---|
committer | Phil Blundell <philb@gnu.org> | 2009-06-13 10:27:05 +0100 |
commit | f725a81c0494aa40a5d6e5f1bd3ee43209da287b (patch) | |
tree | 036264351df31e73c18792eec6f643a9f6104152 /recipes/openssl | |
parent | ae82ac27d6cdd1084941dab14b9ff04e19210bae (diff) |
openssl: avoid empty PREFIX since this causes Configure to do the wrong thing
Diffstat (limited to 'recipes/openssl')
-rw-r--r-- | recipes/openssl/openssl.inc | 6 |
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 () { |