 +		./Configure linux-elf \
  			--prefix=/usr \
  			--openssldir=/etc/ssl \
-+			--with-fipslibdir="$(PKG_INSTALL_DIR)\ssl/fips-1.0/lib" \
  			$(TARGET_CPPFLAGS) \
  			$(TARGET_LDFLAGS) -ldl \
 -			-DOPENSSL_SMALL_FOOTPRINT \

- 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)" \
