$OpenBSD: patch-jdk_make_tools_freetypecheck_Makefile,v 1.4 2009/10/07 01:53:54 kurt Exp $
--- jdk/make/tools/freetypecheck/Makefile.orig	Thu Sep 17 03:51:43 2009
+++ jdk/make/tools/freetypecheck/Makefile	Sat Sep 26 10:00:48 2009
@@ -49,8 +49,15 @@ else
   # Add runtime lib search path to ensure test will be runnable
   ifeq ($(PLATFORM), solaris)
     FT_LD_OPTIONS += -R $(FREETYPE_LIB_PATH) -lfreetype
-  else #linux
+  else 
+    ifeq ($(PLATFORM), bsd)
+      ifeq ($(OS_NAME), netbsd)
+        FT_LD_OPTIONS += -Wl,-R$(FREETYPE_LIB_PATH)
+      endif
+      FT_LD_OPTIONS += -lfreetype -lz
+    else # linux
       FT_LD_OPTIONS += -Wl,-rpath -Wl,$(FREETYPE_LIB_PATH) -lfreetype
+    endif
   endif
 endif
 FT_OPTIONS += -I$(FREETYPE_HEADERS_PATH)
