From 32a77edb422443ed82a91f6d06e0f5966d221c7f Mon Sep 17 00:00:00 2001 From: tab Date: Sun, 18 Apr 2021 00:42:49 -0400 Subject: [PATCH] Makefile: Use -iquote for adding local libs to include path With `-I` private headers in hfsfuse's bundled dependencies (ublio, utf8proc) and core libs can conflict with system provided headers, as these will also be searched in include directives made within system headers. Originally introduced in 8df0c23ffa111ffc0c4f5aed0d142fd8a8913530 and reported in github issue #26 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8df0345..6d02dac 100644 --- a/Makefile +++ b/Makefile @@ -66,7 +66,7 @@ export CONFIG LIBS = lib/libhfsuser/libhfsuser.a lib/libhfs/libhfs.a LIBDIRS = $(abspath $(dir $(LIBS))) -INCLUDE = $(foreach lib,$(LIBDIRS),-I$(lib)) +INCLUDE = $(foreach lib,$(LIBDIRS),-iquote $(lib)) ifneq ($(WITH_UBLIO), none) APP_FLAGS += -DHAVE_UBLIO