 diff -Naur a/package/openssl/Makefile b/package/openssl/Makefile
 --- a/package/openssl/Makefile	2009-05-17 00:25:41.209156000 +0000
-+++ b/package/openssl/Makefile	2009-05-30 05:06:49.549118296 +0000
++++ b/package/openssl/Makefile	2009-05-30 07:56:24.508738701 +0000
 @@ -18,8 +18,6 @@
  	ftp://ftp.sunet.se/pub/security/tools/net/openssl/source/
  PKG_MD5SUM:=e555c6d58d276aec7fdc53363e338ab3

- fi
- 
- # Only set CC if not supplied already
diff -Naur a/package/openssl/patches/150-no_engines.patch b/package/openssl/patches/150-no_engines.patch
--- a/package/openssl/patches/150-no_engines.patch	2008-11-03 21:26:27.396977000 +0000
+++ b/package/openssl/patches/150-no_engines.patch	1970-01-01 00:00:00.000000000 +0000

 endef
 
 TARGET_CFLAGS += $(FPIC)
+TARGET_BUILDDIRS=crypto ssl
 
 define Build/Compile
 	# XXX: OpenSSL "make depend" will look for installed headers before its own,
@@ -99,21 +96,18 @@
 	$(MAKE) -C $(PKG_BUILD_DIR) \
 		MAKEDEPPROG="$(TARGET_CROSS)gcc" \
 		OPENWRT_OPTIMIZATION_FLAGS="$(TARGET_CFLAGS)" \
