$OpenBSD: patch-jdk_make_sun_image_generic_Makefile,v 1.2 2009/01/04 23:25:16 kurt Exp $
--- jdk/make/sun/image/generic/Makefile.orig	Thu Sep 11 03:44:07 2008
+++ jdk/make/sun/image/generic/Makefile	Fri Sep 12 17:05:56 2008
@@ -68,5 +68,9 @@ CPPFLAGS += \
             -I$(PLATFORM_SRC)/native/$(PKGDIR)/medialib 
 
 OTHER_CFLAGS += -D__USE_J2D_NAMES -D__MEDIALIB_OLD_NAMES
-OTHER_LDLIBS = $(LIBM) -ldl
+OTHER_LDLIBS = $(LIBM)
+ifneq ($(PLATFORM), bsd)
+OTHER_LDLIBS += -ldl
+endif
+
 
