Commit 6dcf770f authored by Martina Ferrari's avatar Martina Ferrari

Fix FTCBFS, thanks to Helmut Grohne for the patch. Closes: #811561.

* Fix FTCBFS, thanks to Helmut Grohne for the patch. Closes: #811561.
  + Really assign CC for cross compilation.
  + Use triplet prefixed pkg-config.
parent 0f09776f
......@@ -4,6 +4,9 @@ net-tools (1.60+git20161116.90da8a0-1) UNRELEASED; urgency=medium
* Re-synced translations.patch.
* Acknowledge NMUs. Thanks a lot to Andrey Rahmatullin for the
fixes and uploads. Closes: 846509.
* Fix FTCBFS, thanks to Helmut Grohne for the patch. Closes: #811561.
+ Really assign CC for cross compilation.
+ Use triplet prefixed pkg-config.
-- Martín Ferrari <tincho@debian.org> Mon, 26 Dec 2016 02:08:18 -0300
......
......@@ -8,10 +8,12 @@
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
ifeq ($(origin CC),default)
CC := $(DEB_HOST_GNU_TYPE)-gcc
endif
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
CC ?= $(DEB_HOST_GNU_TYPE)-gcc
else
CC ?= gcc
PKG_CONFIG ?= $(DEB_HOST_GNU_TYPE)-pkg-config
export PKG_CONFIG
endif
COPTS := -D_GNU_SOURCE -Wall $(shell dpkg-buildflags --get CFLAGS) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment