# Build a mostly static binary.

CC					= gcc-7
CXX					= g++-7

BOOST_ROOT			= /home/tnorri/local/boost-1-64-0-g++-7.1
BOOST_INCLUDE		= -I$(BOOST_ROOT)/include
BOOST_LIBS			= -L$(BOOST_ROOT)/lib -lboost_iostreams
LIBDISPATCH_LIBS	= ../lib/libdispatch/libdispatch-build/src/libdispatch.a ../lib/libpwq/libpwq-build/libpthread_workqueue.a /usr/lib/libkqueue.a -lpthread -static-libstdc++ -static-libgcc

# Build a mostly static binary.

LLVM_ROOT				= /usr/lib/llvm-6.0
CLANG_INCLUDE_DIR		= $(LLVM_ROOT)/lib/clang/6.0.0/include

CC						= clang-6.0
CXX						= clang++-6.0
LIBDISPATCH_CFLAGS		= -U__STDC_HOSTED__ -isystem $(CLANG_INCLUDE_DIR)
LIBDISPATCH_CXXFLAGS	= -U__STDC_HOSTED__ -isystem $(CLANG_INCLUDE_DIR)

CFLAGS					= -fblocks -U__STDC_HOSTED__ -isystem $(CLANG_INCLUDE_DIR)
CXXFLAGS				= -fblocks -U__STDC_HOSTED__ -isystem $(CLANG_INCLUDE_DIR)

BOOST_LIBS				= -L$(BOOST_ROOT)/lib -lboost_iostreams
LDFLAGS					= -static-libstdc++ -static-libgcc

Build with Clang on Linux
Build with Clang on Linux

– Apple’s libdispatch requires Clang anyway.
