[oe-commits] Phil Blundell : openssl: avoid empty PREFIX since this causes Configure to do the wrong thing

git version control git at git.openembedded.org
Sat Jun 13 09:33:03 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: f725a81c0494aa40a5d6e5f1bd3ee43209da287b
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=f725a81c0494aa40a5d6e5f1bd3ee43209da287b

Author: Phil Blundell <philb at gnu.org>
Date:   Sat Jun 13 10:27:05 2009 +0100

openssl: avoid empty PREFIX since this causes Configure to do the wrong thing

---

 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 2ec1d91..e722db5 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 () {





More information about the Openembedded-commits mailing list