mirror of
https://github.com/rfc1036/whois.git
synced 2026-02-02 06:24:08 +00:00
Support Debian cross-building
Respect DEB_HOST_GNU_TYPE when selecting CC for cross-compiling. Fixes Debian bug #695442 reported by Adam Conrad.
This commit is contained in:
parent
e5e1efe2c3
commit
130cfbf215
7
debian/rules
vendored
7
debian/rules
vendored
@ -1,6 +1,13 @@
|
||||
#!/usr/bin/make -f
|
||||
SHELL+= -e
|
||||
|
||||
DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
||||
DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
|
||||
|
||||
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
|
||||
export CC := $(DEB_HOST_GNU_TYPE)-$(CC)
|
||||
endif
|
||||
|
||||
DPKG_EXPORT_BUILDFLAGS = 1
|
||||
-include /usr/share/dpkg/buildflags.mk
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user