bug id:450

Nathanael D. Noblet nathanael at gnat.ca
Fri Sep 30 18:25:23 UTC 2005


The patch supplied at
http://bugs.uclibc.org/view.php?id=450

works for all arches except i686. The openssl ./Configure script has no
linux-i386-i686 arch, it does however have linux-i386-i686/cmov though
by no means authorative, I'm assuming the cmov has to do with an
assembly instruction. So not sure if the following revised patch
shouldn't be used...

?
Index: package/openssl/openssl.mk
===================================================================
--- package/openssl/openssl.mk  (revision 11697)
+++ package/openssl/openssl.mk  (working copy)
@@ -10,6 +10,16 @@
 OPENSSL_SOURCE:=openssl-$(OPENSSL_VER).tar.gz
 OPENSSL_DIR:=$(BUILD_DIR)/openssl-$(OPENSSL_VER)

+ifeq ($(BR2_i386),y)
+ifeq ($(ARCH),i686)
+OPENSSL_TARGET_ARCH:=i386-$(ARCH)/cmov
+else
+OPENSSL_TARGET_ARCH:=i386-$(ARCH)
+endif
+else
+OPENSSL_TARGET_ARCH:=$(ARCH)
+endif
+
 $(DL_DIR)/$(OPENSSL_SOURCE):
        $(WGET) -P $(DL_DIR) $(OPENSSL_SITE)/$(OPENSSL_SOURCE)

@@ -26,7 +36,7 @@
 $(OPENSSL_DIR)/Makefile: $(OPENSSL_DIR)/.unpacked
        (cd $(OPENSSL_DIR); \
        CFLAGS="-DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA -DOPENSSL_NO_MDC2
-DOPENSSL_NO_RC5 $(TARGET_CFLAGS)" \
-       PATH=$(TARGET_PATH) ./Configure linux-$(ARCH) --prefix=/ \
+       PATH=$(TARGET_PATH) ./Configure linux-$(OPENSSL_TARGET_ARCH)
--prefix=/ \
                --openssldir=/usr/lib/ssl -L$(STAGING_DIR)/lib -ldl \
                -I$(STAGING_DIR)/include $(OPENSSL_OPTS) no-threads \
                shared no-idea no-mdc2 no-rc5)

-- 
Nathanael D. Noblet
Gnat Solutions, Inc
http://www.gnat.ca/
T 250.385.4613
C 250.383.4613





More information about the uClibc mailing list