Merge lp:~peter-pearse/ubuntu/natty/libxml2/prop001 into lp:ubuntu/natty/libxml2

Proposed by Peter Pearse
Status: Needs review
Proposed branch: lp:~peter-pearse/ubuntu/natty/libxml2/prop001
Merge into: lp:ubuntu/natty/libxml2
Diff against target: 40 lines (+17/-0)
2 files modified
debian/changelog (+6/-0)
debian/rules (+11/-0)
To merge this branch: bzr merge lp:~peter-pearse/ubuntu/natty/libxml2/prop001
Reviewer Review Type Date Requested Status
Steve Langasek Pending
Review via email: mp+56957@code.launchpad.net
To post a comment you must log in.

Unmerged revisions

41. By Peter Pearse

Patch for cross building.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2010-12-25 10:48:27 +0000
3+++ debian/changelog 2011-04-08 14:44:25 +0000
4@@ -1,3 +1,9 @@
5+libxml2 (2.7.8.dfsg-2ubuntu1) natty; urgency=low
6+
7+ * Patch for cross building
8+
9+ -- Peter Pearse <peter.pearse@linaro.org> Fri, 08 Apr 2011 08:49:59 +0000
10+
11 libxml2 (2.7.8.dfsg-2) unstable; urgency=low
12
13 * xpath.c: Fix a double-freeing error in XPath processing code.
14
15=== modified file 'debian/rules'
16--- debian/rules 2010-06-29 12:42:35 +0000
17+++ debian/rules 2011-04-08 14:44:25 +0000
18@@ -1,5 +1,8 @@
19 #!/usr/bin/make -f
20
21+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
22+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
23+
24 # The versions of python currently supported
25 PYVERS=$(shell pyversions -s)
26 # The current default version of python
27@@ -26,6 +29,14 @@
28 endif
29
30 CONFIGURE_FLAGS := --with-history CC="gcc -Wl,--as-needed" CFLAGS="$(CFLAGS)" --cache-file="$(CURDIR)/build/config.cache"
31+ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
32+ CONFIGURE_FLAGS += --host $(DEB_HOST_GNU_TYPE) --build $(DEB_BUILD_GNU_TYPE)
33+ CONFIGURE_FLAGS += CC="$(DEB_HOST_GNU_TYPE)-gcc -Wl,--as-needed"
34+else
35+ CONFIGURE_FLAGS += CC="gcc -Wl,--as-needed"
36+endif
37+
38+
39
40 override_dh_auto_configure: $(TARGETS:%=configure-%)
41

Subscribers

People subscribed via source and target branches

to all changes: