Add support for dfbsd to mklib script.
diff --git a/bin/mklib b/bin/mklib
index 90bf834..2fb215e 100755
--- a/bin/mklib
+++ b/bin/mklib
@@ -107,6 +107,9 @@
 	-L*)
 	    DEPS="$DEPS $1"
 	    ;;
+	-Wl*)
+            DEPS="$DEPS $1"
+            ;;
 	-pthread)
 	    # this is a special case (see bugzilla 10876)
 	    DEPS="$DEPS $1"
@@ -198,7 +201,7 @@
 #
 case $ARCH in
 
-    'Linux' | 'OpenBSD' | 'GNU' | GNU/*)
+    'Linux' | 'OpenBSD' | 'DragonFly' | 'GNU' | GNU/*)
 	# we assume gcc
 
 	if [ "x$LINK" = "x" ] ; then