Browse Source

Use correct compiler when cross-building.

tags/1.40
Colin Watson 9 years ago
parent
commit
c63d5d2090
2 changed files with 17 additions and 1 deletions
  1. +6
    -0
      debian/changelog
  2. +11
    -1
      debian/rules

+ 6
- 0
debian/changelog View File

@@ -1,3 +1,9 @@
main-menu (1.40) UNRELEASED; urgency=low

* Use correct compiler when cross-building.

-- Colin Watson <cjwatson@debian.org> Wed, 09 Jan 2013 12:33:18 +0000

main-menu (1.39) unstable; urgency=low

[ Updated translations ]


+ 11
- 1
debian/rules View File

@@ -1,6 +1,16 @@
#! /usr/bin/make -f

DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)

%:
dh $@

ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
CROSS :=
else
CROSS := CC=$(DEB_HOST_GNU_TYPE)-gcc
endif

override_dh_auto_build:
$(MAKE) small
$(MAKE) small $(CROSS)

Loading…
Cancel
Save