diff --git a/usr.bin/clang/clang.prog.mk b/usr.bin/clang/clang.prog.mk index 7d254252c016..3228f3c4da06 100644 --- a/usr.bin/clang/clang.prog.mk +++ b/usr.bin/clang/clang.prog.mk @@ -3,8 +3,8 @@ LLVM_SRCS= ${SRCTOP}/contrib/llvm CLANG_SRCS= ${LLVM_SRCS}/tools/clang -CFLAGS+= -I${.OBJDIR}/../../../lib/clang/libclang -CFLAGS+= -I${.OBJDIR}/../../../lib/clang/libllvm +CFLAGS+= -I${OBJTOP}/lib/clang/libclang +CFLAGS+= -I${OBJTOP}/lib/clang/libllvm .include "${SRCTOP}/lib/clang/clang.build.mk" @@ -12,8 +12,8 @@ LIBDEPS+= clang LIBDEPS+= llvm .for lib in ${LIBDEPS} -DPADD+= ${.OBJDIR}/../../../lib/clang/lib${lib}/lib${lib}.a -LDADD+= ${.OBJDIR}/../../../lib/clang/lib${lib}/lib${lib}.a +DPADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a +LDADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a .endfor LIBADD+= ncursesw