diff --git a/Makefile b/Makefile index 3428802..9491835 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ CXXFLAGS = -std=gnu++11 $(OPTFLAGS) $(DEBUGFLAGS) $(shell getconf LFS_CFLAGS) $( LDFLAGS = -L. $(shell getconf LFS_LDFLAGS) LIBTCMALLOC = -ltcmalloc_minimal LDLIBS = $(shell getconf LFS_LIBS) -lyrmcds $(LIBTCMALLOC) -latomic -lpthread -CLDOC = LD_LIBRARY_PATH=/usr/local/clang/lib cldoc +CLDOC := LD_LIBRARY_PATH=$(shell llvm-config --libdir) cldoc HEADERS = $(wildcard src/*.hpp cybozu/*.hpp) SOURCES = $(wildcard src/*.cpp cybozu/*.cpp)