--- Portfile.orig	2009-01-12 15:00:39.000000000 -0500
+++ Portfile	2009-01-12 15:27:49.000000000 -0500
@@ -40,6 +40,8 @@
 post-patch {
     system "cd ${worksrcpath} &&
         tar zxf ${distpath}/droppatch.tar.gz"
+
+    reinplace "s|\\(.*\\)\\(\$(LDFLAGS)\\)\\(.*\\)\\(\$(LDLIBS)\\)\\(.*\\)|\\1\\4\\3\\2\\5|" ${worksrcpath}/makefile.cfg
 }
 
 configure.args      --enable-shared --enable-static

