[pkg-db-commits] [SCM] Berkeley DB v4.7 Debian packaging branch, debian-sid, updated. debian/4.8.30-9-2-gbf5e8cb

Ondřej Surý ondrej at sury.org
Fri Sep 23 09:15:21 UTC 2011


The following commit has been merged in the debian-sid branch:
commit 29a896fd0b8afb7f58e96577fa91358dadef3993
Author: Ondřej Surý <ondrej at sury.org>
Date:   Fri Sep 23 11:05:23 2011 +0200

    Set CC appropriately when cross-compiling.

diff --git a/debian/rules b/debian/rules
index d959515..8d1ca32 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,7 +20,12 @@ DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
-CONFIGURE_VARS = CC=gcc CFLAGS="$(CFLAGS)" 
+ifeq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+       CONFIGURE_VARS = CC=gcc CFLAGS="$(CFLAGS)"
+else
+       CONFIGURE_VARS = CC=$(DEB_HOST_GNU_TYPE)-gcc CFLAGS="$(CFLAGS)"
+endif
+
 CONFIGURE_SWITCHES =    --prefix=/usr \
 			--mandir=\$${prefix}/share/man \
 			--localstatedir=/var \

-- 
Berkeley DB v4.7 Debian packaging



More information about the pkg-db-commits mailing list