macro_name CLANG
binary_name clang++
compile_option "-c "
output_to_option "-o "
add_include_dir_option -I
add_lib_dir_option -L
add_lib_option -l
lang_flags "-D_REENTRANT -std=c++11"
warning_flags "-Wextra -Wall"
makefile_style unix
lib_opt_flags "-O3"
check_opt_flags "-O2"
shared_flags "-fPIC"
debug_flags "-g -fno-inline-functions"
no_debug_flags ""
visibility_build_flags "-fvisibility=hidden"
visibility_attribute '__attribute__((visibility("default")))'
# The default works for GNU ld and several other Unix linkers
default -> "$(CXX) -shared -fPIC -Wl,-soname,$(SONAME)"
darwin -> "$(CXX) -dynamiclib -fPIC -install_name $(LIBDIR)/$(SONAME)"
"aes-ni" -> "-maes"
"ssse3" -> "-mssse3"
"sse2" -> "-msse2"
x86_64 -> "-march=SUBMODEL"
nehalem -> "-march=corei7"
sandybridge -> "-march=corei7-avx"
ivybridge -> "-march=core-avx-i"
all -> "-stdlib=libc++ -pthread"
x86_64 -> "-m64"
ppc64 -> "-m64"
netbsd -> "-D_NETBSD_SOURCE"