Package: opensssl Version: 0.9.8g-4 Severity: wishlist Tags: patch User: [EMAIL PROTECTED] Usertags: crossbuilt
In line with the other cross-building support bugs: http://lists.debian.org/debian-devel/2007/11/msg00116.html This patch is necessary to allow openssl to cross-build in Debian. *** ../crossbuild.diff --- openssl-0.9.8g.debian/debian/rules +++ openssl-0.9.8g.emdebian/debian/rules @@ -19,6 +19,14 @@ # The binary architeture DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH) +DEB_HOST_GNU_TYPE=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE=$(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) +CROSS=CC=$(DEB_HOST_GNU_TYPE)-gcc +else +CROSS=CC=$(CC) +endif + CONFARGS = --prefix=/usr --openssldir=/usr/lib/ssl no-idea no-mdc2 no-rc5 zlib OPT_alpha = ev4 ev5 OPT_i386 = i486 i586 i686/cmov @@ -33,7 +41,7 @@ # perl util/ssldir.pl /usr/lib/ssl # chmod +x debian/libtool ./Configure no-shared $(CONFARGS) debian-$(DEB_HOST_ARCH) - make -f Makefile all + make $(CROSS) -f Makefile all make test mv libcrypto.a libcrypto.static mv libssl.a libssl.static @@ -42,7 +50,7 @@ do \ set -xe; \ ./Configure shared $(CONFARGS) debian-$(DEB_HOST_ARCH)-$$opt; \ - make -f Makefile all; \ + make -f $(CROSS) Makefile all; \ make test; \ mkdir -p $$opt; \ mv libcrypto.so* libssl.so* $$opt/; \ @@ -52,7 +60,7 @@ #make -f Makefile depend ln -sf apps/openssl.pod crypto/crypto.pod ssl/ssl.pod doc/ # make -f Makefile linux-shared - make -f Makefile all + make $(CROSS) -f Makefile all make test # strip apps/openssl # make -f Makefile clean -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.24-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash
signature.asc
Description: Digital signature

