openssl: avoid empty PREFIX since this causes Configure to do the wrong thing
authorPhil Blundell <philb@gnu.org>
Sat, 13 Jun 2009 09:27:05 +0000 (10:27 +0100)
committerPhil Blundell <philb@gnu.org>
Sat, 13 Jun 2009 09:27:05 +0000 (10:27 +0100)
recipes/openssl/openssl.inc

index 2ec1d91..e722db5 100644 (file)
@@ -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 () {