From fe9ecc0162219df12be08a7529df9486702d1938 Mon Sep 17 00:00:00 2001 From: Yuichiro NAITO Date: Tue, 27 Nov 2018 22:45:43 +0900 Subject: [PATCH] build: Remove GCC.I and GCC.L for FreeBSD. It is too strong configuration that forces to search for the specific path first. If contrib library (ex. x265) is installed from Ports, and Ports library version is different from contrib, "GCC.I=/usr/local/include" look up Ports library headers first and it can be different definitions from contrib headers. We should look up contrib headers before Ports library headers. --- libhb/module.defs | 1 + make/variant/freebsd.defs | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/libhb/module.defs b/libhb/module.defs index 593328b10..e052df996 100644 --- a/libhb/module.defs +++ b/libhb/module.defs @@ -49,6 +49,7 @@ LIBHB.GCC.D += __LIBHB__ USE_PTHREAD LIBHB.GCC.I += $(LIBHB.build/) $(CONTRIB.build/)include ifeq ($(BUILD.system),freebsd) + LIBHB.GCC.I += $(LOCALBASE)/include LIBHB.GCC.I += $(LOCALBASE)/include/libxml2 else ifneq (,$(filter $(BUILD.system),darwin cygwin mingw)) LIBHB.GCC.I += $(CONTRIB.build/)include/libxml2 diff --git a/make/variant/freebsd.defs b/make/variant/freebsd.defs index e0855b51a..5959341e4 100644 --- a/make/variant/freebsd.defs +++ b/make/variant/freebsd.defs @@ -3,8 +3,6 @@ LOCALBASE ?= /usr/local TARGET.dylib.ext = .so -GCC.I = $(LOCALBASE)/include -GCC.L = $(LOCALBASE)/lib GCC.D = LIBICONV_PLUG GCC.args.dylib = -shared -- 2.40.0