diff --git a/cint/cling/Module.mk b/cint/cling/Module.mk
index 5522720de084fe5d858f1baa855e45c84ea3a7b3..0889c5321245d0fb625cb0d06296e9a65c054933 100644
--- a/cint/cling/Module.mk
+++ b/cint/cling/Module.mk
@@ -37,7 +37,13 @@ CLINGCXXFLAGS := $(shell $(LLVMCONFIG) --cxxflags) -I$(MODDIR)/include \
 CLINGLLVMLIBS:= -L$(shell $(LLVMCONFIG) --libdir) \
 	$(addprefix -lclang,\
 		Frontend Serialization Driver CodeGen Parse Sema Analysis Rewrite AST Lex Basic) \
-	$(shell $(LLVMCONFIG) --libs) $(shell $(LLVMCONFIG) --ldflags)
+	$(patsubst -lLLVM%Disassembler,,\
+	$(patsubst -lLLVM%AsmParser,,\
+	$(filter-out -lLLVMipa,\
+	$(shell $(LLVMCONFIG) --libs linker jit executionengine debuginfo \
+	  archive bitreader all-targets codegen selectiondag asmprinter \
+	  mcparser scalaropts instcombine transformutils analysis target)))) \
+	$(shell $(LLVMCONFIG) --ldflags)
 endif
 
 ##### local rules #####