$OpenBSD: patch-jdk_make_sun_security_krb5_Makefile,v 1.1 2011/01/11 15:47:50 kurt Exp $
--- jdk/make/sun/security/krb5/Makefile.orig	Tue Oct 26 10:41:06 2010
+++ jdk/make/sun/security/krb5/Makefile	Tue Oct 26 10:41:11 2010
@@ -76,7 +76,7 @@ endif # PLATFORM
 ifeq ($(PLATFORM), windows)
   OTHER_LDLIBS = $(JVMLIB)
 else
-  OTHER_LDLIBS = -ldl $(JVMLIB)
+  OTHER_LDLIBS = $(LIBDL) $(JVMLIB)
 endif
 
 build:
