diff --git a/Makefile b/Makefile
index 375a244fd6ac7b83395e517e50a99d7ddd8d3979..c7be59568c8535f212d54f6dc7622d54de147c37 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ make-compiler:
 
 .PHONY: make-%
 make-%:
-	$(MAKE) -C $* -e 
+	LD_LIBRARY_PATH=`pwd`/lib/c $(MAKE) -C $* -e 
 
 .PHONY: test
 test: $(SUBDIRS:%=test-%)
@@ -20,7 +20,7 @@ test-compiler:
 
 .PHONY: test-%
 test-%:
-	$(MAKE) -C $* -e test
+	LD_LIBRARY_PATH=`pwd`/lib/c $(MAKE) -C $* -e test
 
 .PHONY: clean
 clean: $(SUBDIRS:%=clean-%)