[Pkg-openmpi-commits] r73 - in /openmpi/trunk/debian: changelog rules

hauro-guest at users.alioth.debian.org hauro-guest at users.alioth.debian.org
Sun Nov 11 22:43:53 UTC 2007


Author: hauro-guest
Date: Sun Nov 11 22:43:53 2007
New Revision: 73

URL: http://svn.debian.org/wsvn/pkg-openmpi/?sc=1&rev=73
Log:
Added cross-compiling support

Modified:
    openmpi/trunk/debian/changelog
    openmpi/trunk/debian/rules

Modified: openmpi/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-openmpi/openmpi/trunk/debian/changelog?rev=73&op=diff
==============================================================================
--- openmpi/trunk/debian/changelog (original)
+++ openmpi/trunk/debian/changelog Sun Nov 11 22:43:53 2007
@@ -5,8 +5,9 @@
     - Renamed XS-Vcs-* fields to Vcs-*
     - Added Homepage field
     - Removed Build-Depends on libsysfs-dev (Closes: #449084)
-
- -- Manuel Prinz <debian at pinguinkiste.de>  Mon, 05 Nov 2007 21:35:03 +0100
+  * debian/rules: Added cross-compilation support
+
+ -- Manuel Prinz <debian at pinguinkiste.de>  Sun, 11 Nov 2007 22:47:27 +0100
 
 openmpi (1.2.4-3) unstable; urgency=low
 

Modified: openmpi/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-openmpi/openmpi/trunk/debian/rules?rev=73&op=diff
==============================================================================
--- openmpi/trunk/debian/rules (original)
+++ openmpi/trunk/debian/rules Sun Nov 11 22:43:53 2007
@@ -7,6 +7,12 @@
 DEB_HOST_GNU_CPU  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
 
 CFLAGS = -Wall -g
+
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+	CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+else
+	CROSS= --build $(DEB_BUILD_GNU_TYPE)
+endif
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 	CFLAGS += -O0
@@ -22,7 +28,7 @@
 configure-stamp: 
 	dh_testdir
 	CFLAGS="$(CFLAGS)" ./configure 				\
-			--build=$(DEB_BUILD_GNU_TYPE) 		\
+			$(CROSS)				\
 			--prefix=/usr 				\
 			--mandir=\$${prefix}/share/man 		\
 			--infodir=\$${prefix}/share/info 	\




More information about the Pkg-openmpi-commits mailing list