mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-18 21:28:02 +00:00
tools/llvm-bpf: filter out STAGING_DIR_HOST/include from cflags on non-linux systems
Avoids picking up an incompatible libuuid from util-linux Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
852ed0379a
commit
8043e2e746
@ -22,6 +22,11 @@ CMAKE_SOURCE_SUBDIR := llvm
|
||||
include $(INCLUDE_DIR)/host-build.mk
|
||||
include $(INCLUDE_DIR)/cmake.mk
|
||||
|
||||
ifneq ($(HOST_OS),Linux)
|
||||
HOST_CFLAGS := $(filter-out -I$(STAGING_DIR_HOST)/include,$(HOST_CFLAGS))
|
||||
HOST_CXXFLAGS := $(filter-out -I$(STAGING_DIR_HOST)/include,$(HOST_CXXFLAGS))
|
||||
endif
|
||||
|
||||
LLVM_BPF_PREFIX = llvm-bpf-$(PKG_VERSION).$(HOST_OS)-$(HOST_ARCH)
|
||||
|
||||
CMAKE_HOST_INSTALL_PREFIX = $(STAGING_DIR_HOST)/$(LLVM_BPF_PREFIX)
|
||||
|
Loading…
Reference in New Issue
Block a user