Browse Source

Fix link error on Mojave

1f58b4d869 introduced a link error on my
Mojave machine, because making the Boost include path the highest-priority
one was forcing use of the system's libfdt.h.  But the system's libfdt.h
unfortunately lacks the 'extern "C"' linkage modifier, causing link errors
when invoking FDT routines from C++ code.

Fix by making the Boost include path the lowest-priority one.
pull/867/head
Andrew Waterman 4 years ago
parent
commit
f5e5b653d9
  1. 4
      Makefile.in

4
Makefile.in

@ -96,7 +96,7 @@ VPATH := $(addprefix $(src_dir)/, $(sprojs_enabled))
default-CFLAGS := -DPREFIX=\"$(prefix)\" -Wall -Wno-unused -Wno-nonportable-include-path -g -O2 -fPIC
default-CXXFLAGS := $(default-CFLAGS) -std=c++11
mcppbs-CPPFLAGS := @CPPFLAGS@ @BOOST_CPPFLAGS@
mcppbs-CPPFLAGS := @CPPFLAGS@
mcppbs-CFLAGS := $(default-CFLAGS) @CFLAGS@
mcppbs-CXXFLAGS := $(default-CXXFLAGS) @CXXFLAGS@
@ -111,7 +111,7 @@ all-cxx-flags := \
all-c-flags := \
$(mcppbs-CPPFLAGS) $(mcppbs-CFLAGS) $(CPPFLAGS) $(CFLAGS)
COMPILE := $(CXX) -MMD -MP $(all-cxx-flags) $(sprojs_include)
COMPILE := $(CXX) -MMD -MP $(all-cxx-flags) $(sprojs_include) @BOOST_CPPFLAGS@
COMPILE_C := $(CC) -MMD -MP $(all-c-flags) $(sprojs_include)
# Linker

Loading…
Cancel
Save