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

Proposed by Peter Pearse
Status: Merged
Merged at revision: 11
Proposed branch: lp:~peter-pearse/ubuntu/natty/blt/prop001
Merge into: lp:ubuntu/natty/blt
Diff against target: 44 lines (+17/-1)
2 files modified
debian/changelog (+6/-0)
debian/rules (+11/-1)
To merge this branch: bzr merge lp:~peter-pearse/ubuntu/natty/blt/prop001
Reviewer Review Type Date Requested Status
Steve Langasek Needs Information
Review via email: mp+49993@code.launchpad.net

Description of the change

Just needs the standard host/build & CC changes

To post a comment you must log in.
Revision history for this message
Steve Langasek (vorlon) wrote :

+ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
+ CONFIGURE = CC=$(DEB_HOST_GNU_TYPE)-gcc
+endif

That's not really standard, shouldn't autoconf pick this up for us automatically without having to set CC explicitly?

review: Needs Information
Revision history for this message
Steve Langasek (vorlon) wrote :

nevermind, tested for myself and see that it doesn't pick up CC without this change. :/

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 2009-12-04 09:28:09 +0000
3+++ debian/changelog 2011-02-16 16:05:28 +0000
4@@ -1,3 +1,9 @@
5+blt (2.4z-4.2ubuntu1) natty; urgency=low
6+
7+ * Patch debian/rules for cross building
8+
9+ -- Peter Pearse <peter.pearse@linaro.org> Wed, 16 Feb 2011 16:00:03 +0000
10+
11 blt (2.4z-4.2) unstable; urgency=low
12
13 * Non-maintainer upload.
14
15=== modified file 'debian/rules'
16--- debian/rules 2009-12-04 09:28:09 +0000
17+++ debian/rules 2011-02-16 16:05:28 +0000
18@@ -4,15 +4,25 @@
19 # This has to be exported to make some magic below work.
20 export DH_OPTIONS
21
22+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
23+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
24
25 # useful variables
26 v = 2.4
27
28 dtmp = $(shell pwd)/debian/tmp
29
30-CONFIGURE = ./configure --prefix=/usr/ --mandir=/usr/share/man \
31+ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
32+ CONFIGURE = CC=$(DEB_HOST_GNU_TYPE)-gcc
33+endif
34+
35+CONFIGURE += ./configure --prefix=/usr/ --mandir=/usr/share/man \
36 --with-cflags="-O2 -g -D_REENTRANT"
37
38+ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
39+ CONFIGURE += --host $(DEB_HOST_GNU_TYPE) --build $(DEB_BUILD_GNU_TYPE)
40+endif
41+
42 # Now, the build targets...
43
44 build: build-stamp

Subscribers

People subscribed via source and target branches

to all changes: