Skip to content

Commit

Permalink
libdnet: fix compilation under macOS
Browse files Browse the repository at this point in the history
configure checks the host system not the target one. Override these
variables.

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed Oct 6, 2021
1 parent da42cf7 commit 6713d9e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libs/libdnet/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=libdnet
PKG_VERSION:=1.14
PKG_RELEASE:=2
PKG_RELEASE:=3

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/ofalk/libdnet/tar.gz/$(PKG_NAME)-$(PKG_VERSION)?
Expand Down Expand Up @@ -42,6 +42,10 @@ CONFIGURE_ARGS += \
--without-python \
--without-wpdpack

CONFIGURE_VARS += \
ac_cv_dnet_bsd_bpf=no \
ac_cv_dnet_linux_pf_packet=yes

define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dnet-config $(1)/usr/bin/
Expand Down

0 comments on commit 6713d9e

Please sign in to comment.