--- testsuite/Makefile.in.orig	2014-01-12 09:03:45.000000000 +0100
+++ testsuite/Makefile.in	2016-02-03 19:34:07.381487000 +0100
@@ -457,7 +457,7 @@
 
 
 prog: prog.c
-	$(CC) $(RPATH) -o $@ $<
+	$(CC) -Wl,$(RPATH) -o $@ $<
 
 check: $(CHRPATH)
 	$(srcdir)/runtest.sh
