There is a bsd-port only change to include the build dir in the rpath of the 
jdk libs.
For example:

$ objdump -p jre/lib/amd64/libjava.so  | grep RPATH
  RPATH       $ORIGIN:/home/truk/jdk/bsd-port/build/bsd-amd64/lib/amd64/server

As far as I can tell this is not needed and should be removed. The following 
diff
removes it and works okay on OpenBSD. Christos, Greg could you confirm this
doesn't break the builds on FreeBSD and NetBSD?

Thanks,
-Kurt

diff -r 120a0326f76d make/common/Defs-bsd.gmk
--- a/make/common/Defs-bsd.gmk  Wed May 01 09:00:47 2013 -0400
+++ b/make/common/Defs-bsd.gmk  Wed May 01 09:02:42 2013 -0400
@@ -399,7 +399,7 @@
 # the library itself should not.
 #
 VM_NAME         = server
-JVMLIB          = -Xlinker -rpath -Xlinker $(LIBDIR)/$(LIBARCH)/$(VM_NAME) 
-L$(LIBDIR)/$(LIBARCH)/$(VM_NAME) -ljvm
+JVMLIB          = -L$(LIBDIR)/$(LIBARCH)/$(VM_NAME) -ljvm
 JAVALIB         = -ljava $(JVMLIB)
 
 #

Reply via email to