--- a
+++ b/apr/tests.patch
@@ -0,0 +1,48 @@
+
+
+From: David Rothenberger <d.rothenberger@entomo.com>
+
+
+---
+ test/Makefile.in |    6 +++---
+ test/testdso.c   |    3 +++
+ 2 files changed, 6 insertions(+), 3 deletions(-)
+
+diff --git a/test/Makefile.in b/test/Makefile.in
+index b371074..af1c38b 100644
+--- a/test/Makefile.in
++++ b/test/Makefile.in
+@@ -118,16 +118,16 @@ mod_test.lo: $(srcdir)/mod_test.c
+ 	$(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE) -prefer-pic -o $@ \
+ 	  -c $(srcdir)/mod_test.c
+ 
+-OBJECTS_mod_test = mod_test.lo
++OBJECTS_mod_test = mod_test.lo $(LOCAL_LIBS)
+ mod_test.la: $(OBJECTS_mod_test)
+ 	$(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -rpath `pwd` -module \
+-	  -avoid-version $(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@ \
++	  -avoid-version -no-undefined $(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@ \
+ 	  $(OBJECTS_mod_test)
+ 
+ OBJECTS_libmod_test = mod_test.lo $(LOCAL_LIBS)
+ libmod_test.la: $(OBJECTS_libmod_test)
+ 	$(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -rpath `pwd` \
+-	  -avoid-version $(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@ \
++	  -avoid-version -no-undefined $(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@ \
+ 	  $(OBJECTS_libmod_test) $(ALL_LIBS)
+ 
+ OBJECTS_occhild = occhild.lo $(LOCAL_LIBS)
+diff --git a/test/testdso.c b/test/testdso.c
+index 0d9f27b..ec81c16 100644
+--- a/test/testdso.c
++++ b/test/testdso.c
+@@ -35,6 +35,9 @@
+ # define MOD_NAME "mod_test.so"
+ #elif defined(WIN32)
+ # define MOD_NAME TESTBINPATH "mod_test.dll"
++#elif defined(CYGWIN)
++# define MOD_NAME ".libs/mod_test.dll"
++# define LIB_NAME ".libs/cygmod_test.dll"
+ #elif defined(DARWIN)
+ # define MOD_NAME ".libs/mod_test.so" 
+ # define LIB_NAME ".libs/libmod_test.dylib"