X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/e8d897309949d4c2cc7a77ba0e6ca84f071fa6e9..fae2f3c6e5a4ee82aeb9601348403e3a4115dc3b:/openwrt/package/openssl/Makefile diff --git a/openwrt/package/openssl/Makefile b/openwrt/package/openssl/Makefile index afa5f304e..7541b412a 100644 --- a/openwrt/package/openssl/Makefile +++ b/openwrt/package/openssl/Makefile @@ -3,9 +3,9 @@ include $(TOPDIR)/rules.mk PKG_NAME := openssl -PKG_VERSION := 0.9.7f +PKG_VERSION := 0.9.7g PKG_RELEASE := 1 -PKG_MD5SUM := b2d37d7eb8a5a5040d834105d5ae1a50 +PKG_MD5SUM := 991615f73338a571b6a1be7d74906934 PKG_SOURCE_SITE := http://www.openssl.org/source PKG_SOURCE_FILE := $(PKG_NAME)-$(PKG_VERSION).tar.gz @@ -34,13 +34,17 @@ $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.patched (cd $(PKG_BUILD_DIR); \ CFLAGS="-DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA -DOPENSSL_NO_MDC2 -DOPENSSL_NO_RC5" \ PATH=$(TARGET_PATH) ./Configure linux-$(ARCH) --prefix=/ \ - --openssldir=/usr/lib/ssl -L$(STAGING_DIR)/lib -ldl \ - -I$(STAGING_DIR)/include $(OPENSSL_NO_CIPHERS) \ + --openssldir=/usr/lib/ssl -L$(STAGING_DIR)/usr/lib -ldl \ + -I$(STAGING_DIR)/usr/include $(OPENSSL_NO_CIPHERS) \ shared no-krb5 no-ec no-engine zlib-dynamic no-hw no-threads ) touch $(PKG_BUILD_DIR)/.configured $(PKG_BUILD_DIR)/apps/openssl: $(PKG_BUILD_DIR)/.configured - $(MAKE) -j1 CC=$(TARGET_CC) -C $(PKG_BUILD_DIR) all build-shared + $(MAKE) -C $(PKG_BUILD_DIR) -j1 \ + CC="$(TARGET_CC)" \ + AR="$(TARGET_CROSS)ar r" \ + RANLIB="$(TARGET_CROSS)ranlib" \ + all build-shared # Work around openssl build bug to link libssl.so with libcrypto.so. -rm $(PKG_BUILD_DIR)/libssl.so.*.*.* $(MAKE) -j1 CC=$(TARGET_CC) -C $(PKG_BUILD_DIR) do_linux-shared