--- gdbm-orig	2007-06-04 11:08:29.000000000 -0500
+++ gdbm-Portfile	2007-05-10 17:49:54.000000000 -0500
@@ -21,8 +21,13 @@
 checksums	md5 1d1b1d5c0245b1c00aff92da751e9aa1
 patchfiles	patch-Makefile.in
 configure.args	--mandir=\\\${prefix}/share/man --infodir=\\\${prefix}/share/info
+
+post-configure {
+	if {[variant_isset universal]} {
+		reinplace "s|-dynamiclib)|-dynamiclib) ${configure.universal_ldflags}|g" ${worksrcpath}/libtool
+	}
+}
+
 pre-destroot	{
 	reinplace "s|-o \$(BINOWN) -g \$(BINGRP)||g" ${worksrcpath}/Makefile
 }
 destroot.args	prefix=${destroot}/${prefix}


