Browse Source

Use correct compiler when cross-building.

keep-around/c8703c509368e1805e513d61f98a9d17d2cdd9cc
Colin Watson 10 years ago
parent
commit
c63d5d2090
  1. 6
      debian/changelog
  2. 12
      debian/rules

6
debian/changelog

@ -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 ]

12
debian/rules

@ -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