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
+++ b/Makefile.debian
@@ -0,0 +1,20 @@
@@ -0,0 +1,21 @@
+PKG_CONFIG ?= pkg-config
+CFLAGS ?= -g -O2
+
+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)
+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)
+
+CPPFLAGS += $(DEFS)
+
......
......@@ -8,6 +8,7 @@ DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow,+pie
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
export CC := $(DEB_HOST_GNU_TYPE)-gcc
export PKG_CONFIG := $(DEB_HOST_GNU_TYPE)-pkg-config
endif
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