Build dir in rpath
kurt at intricatesoftware.com
Wed May 1 06:10:49 PDT 2013
There is a bsd-port only change to include the build dir in the rpath of the jdk libs.
$ objdump -p jre/lib/amd64/libjava.so | grep RPATH
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?
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)
More information about the bsd-port-dev