$NetBSD: patch-co,v 1.4 2009/12/14 06:36:57 seb Exp $

--- hints/freebsd.sh.orig	2009-12-06 18:06:01.000000000 +0000
+++ hints/freebsd.sh	2009-12-06 18:06:31.000000000 +0000
@@ -114,7 +114,7 @@
 	lddlflags="-Bshareable $lddlflags"
 	;;
 
-*)
+3*|4*|5*|6*)
         objformat=`/usr/bin/objformat`
         if [ x$objformat = xaout ]; then
             if [ -e /usr/lib/aout ]; then
@@ -130,6 +130,14 @@
         fi
         cccdlflags='-DPIC -fPIC'
         ;;
+
+*)
+	libpth="/usr/lib /usr/local/lib"
+	glibpth="/usr/lib /usr/local/lib"
+	ldflags="-Wl,-E "
+	lddlflags="-shared "
+	cccdlflags='-DPIC -fPIC'
+	;;
 esac
 
 case "$osvers" in
