Build dir in rpath
Greg Lewis
glewis at eyesbeyond.com
Sun May 5 10:01:55 PDT 2013
G'day Kurt,
On Wed, May 01, 2013 at 09:10:49AM -0400, Kurt Miller wrote:
> 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?
Doesn't break FreeBSD.
> 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)
>
> #
--
Greg Lewis Email : glewis at eyesbeyond.com
Eyes Beyond Web : http://www.eyesbeyond.com
Information Technology FreeBSD : glewis at FreeBSD.org
More information about the bsd-port-dev
mailing list