Skip to content

Commit

Permalink
Makefile: Use -iquote for adding local libs to include path
Browse files Browse the repository at this point in the history
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 8df0c23
and reported in github issue #26
  • Loading branch information
0x09 committed Apr 18, 2021
1 parent a089632 commit 32a77ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 32a77ed

Please sign in to comment.