[pkg-wpa-devel] r1715 - in /wpa/trunk/debian: changelog rules
kelmo-guest at users.alioth.debian.org
kelmo-guest at users.alioth.debian.org
Mon Apr 9 08:53:59 UTC 2012
Author: kelmo-guest
Date: Mon Apr 9 08:53:58 2012
New Revision: 1715
URL: http://svn.debian.org/wsvn/pkg-wpa/?sc=1&rev=1715
Log:
Add ability to set CC for cross building support (untested).
Modified:
wpa/trunk/debian/changelog
wpa/trunk/debian/rules
Modified: wpa/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-wpa/wpa/trunk/debian/changelog?rev=1715&op=diff
==============================================================================
--- wpa/trunk/debian/changelog (original)
+++ wpa/trunk/debian/changelog Mon Apr 9 08:53:58 2012
@@ -45,8 +45,9 @@
* enable hardened build flags. (Closes: #657332)
* remove DEB_BUILD_OPTIONS=noopt handling from debian/rules, no longer
required since dpkg-buildflags honors it.
-
- -- Kel Modderman <kel at otaku42.de> Mon, 09 Apr 2012 07:56:19 +1000
+ * Add ability to set CC for cross building support (untested).
+
+ -- Kel Modderman <kel at otaku42.de> Mon, 09 Apr 2012 18:53:38 +1000
wpasupplicant (0.7.3-6) unstable; urgency=low
Modified: wpa/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-wpa/wpa/trunk/debian/rules?rev=1715&op=diff
==============================================================================
--- wpa/trunk/debian/rules (original)
+++ wpa/trunk/debian/rules Mon Apr 9 08:53:58 2012
@@ -9,7 +9,13 @@
BINDIR = /sbin
V = 0
-export CFLAGS CPPFLAGS CXXFLAGS LDFLAGS BINDIR V
+DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+ CC=$(DEB_HOST_GNU_TYPE)-gcc
+endif
+
+export CC CFLAGS CPPFLAGS CXXFLAGS LDFLAGS BINDIR V
DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
HOSTAPD_DOT_CONFIG := debian/config/hostapd/$(DEB_HOST_ARCH_OS)
More information about the Pkg-wpa-devel
mailing list