./libwpeditor-plus/debian r12: Only pass --host to configure if DEB_HOST_GNU_TYPE and DEB_BUILD_GNU_TYPE
Loïc Minier
lool at dooz.org
Thu Aug 14 15:05:30 UTC 2008
------------------------------------------------------------
revno: 12
committer: Loïc Minier <lool at dooz.org>
branch nick: debian
timestamp: Thu 2008-08-14 17:05:30 +0200
message:
Only pass --host to configure if DEB_HOST_GNU_TYPE and DEB_BUILD_GNU_TYPE
differ.
modified:
debian/changelog
debian/rules
-------------- next part --------------
=== modified file 'debian/changelog'
--- a/debian/changelog 2008-08-14 15:04:42 +0000
+++ b/debian/changelog 2008-08-14 15:05:30 +0000
@@ -29,6 +29,8 @@
* Pass CFLAGS in the ./configure environment instead of CXXFLAGS.
* Let libwpeditor-plus-dev Recommend pkg-config.
* Drop INSTALL_PROGRAM, we call dh_strip anyway.
+ * Only pass --host to configure if DEB_HOST_GNU_TYPE and DEB_BUILD_GNU_TYPE
+ differ.
-- Jonny Lamb <jonnylamb at jonnylamb.com> Mon, 23 Jun 2008 01:26:26 +0100
=== modified file 'debian/rules'
--- a/debian/rules 2008-08-14 15:04:42 +0000
+++ b/debian/rules 2008-08-14 15:05:30 +0000
@@ -4,14 +4,18 @@
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
configure_flags += \
- --host=$(DEB_HOST_GNU_TYPE) \
- --build=$(DEB_BUILD_GNU_TYPE) \
--prefix=/usr \
--libdir=/usr/lib \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info
+ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
+configure_flags += --build=$(DEB_BUILD_GNU_TYPE)
+else
+configure_flags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
+endif
+
CFLAGS += -Wall -g
CFLAGS += -O$(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),0,2)
CFLAGS += $(if $(findstring thumb,$(DEB_BUILD_OPTIONS)),-mthumb)
More information about the pkg-maemo-commits
mailing list