Author: Ole Streicher <debian@liska.ath.cx>
Description: Use system provided environment when building the test suite
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -10,10 +10,12 @@
 #F77CFLAGS=-g
 
 # uncomment the following for C MINPACK
-MINPACK=../libcminpack$(LIBSUFFIX).a
-CC=gcc
-CFLAGS=-g -Wall
-CPPFLAGS=-I..
+MINPACK=
+#CC=gcc
+#CFLAGS=-g -Wall
+CPPFLAGS+=-I..
+LIBPATH=$(shell echo ../obj-*)
+LDADD+=-L$(LIBPATH) -lcminpack -Wl,-rpath -Wl,$(LIBPATH)
 
 FMINPACK=../fortran/libminpack.a
 
