Commit 58a7bb8c authored by Marco d'Itri's avatar Marco d'Itri

Use a triplet-prefixed pkg-config when cross compiling

Closes: #839016
parent de48914c
--- /dev/null --- /dev/null
+++ b/Makefile.debian +++ b/Makefile.debian
@@ -0,0 +1,20 @@ @@ -0,0 +1,21 @@
+PKG_CONFIG ?= pkg-config
+CFLAGS ?= -g -O2 +CFLAGS ?= -g -O2
+ +
+DEFS := -DLIBWRAP $(shell pkg-config --cflags libbsd-overlay) $(shell pkg-config --cflags libevent) +DEFS := -DLIBWRAP $(shell $(PKG_CONFIG) --cflags libbsd-overlay) $(shell $(PKG_CONFIG) --cflags libevent)
+LIBS := -lwrap $(shell pkg-config --libs libbsd-overlay) $(shell pkg-config --libs libevent) +LIBS := -lwrap $(shell $(PKG_CONFIG) --libs libbsd-overlay) $(shell $(PKG_CONFIG) --libs libevent)
+ +
+CPPFLAGS += $(DEFS) +CPPFLAGS += $(DEFS)
+ +
......
...@@ -8,6 +8,7 @@ DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow,+pie ...@@ -8,6 +8,7 @@ DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow,+pie
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
export CC := $(DEB_HOST_GNU_TYPE)-gcc export CC := $(DEB_HOST_GNU_TYPE)-gcc
export PKG_CONFIG := $(DEB_HOST_GNU_TYPE)-pkg-config
endif endif
D := $(CURDIR)/debian/openbsd-inetd D := $(CURDIR)/debian/openbsd-inetd
......
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