[M3devel] $ORIGIN?

Mika Nystrom mika at async.async.caltech.edu
Fri Jul 16 16:42:43 CEST 2010


Jay K writes:
>
>So I can build a distribution FreeBSD 4.11...
>
>
>But it looks like FreeBSD didn't support $ORIGIN until very recently: 8.0.
>
>
>This is evidenced from two places:
>
>
>http://www.freebsd.org/releases/8.0R/relnotes-detailed.html
>=A0 indicates it is new
>
>
>and http://www.freebsd.org/cgi/man.cgi lets you specify version.
>The ld-elf.so manpage doesn't mention it until 8.0.
>
>
>This means=2C something like:
>=A0 FreeBSD users using < 8.0 will need/want to set LD_LIBRARY_PATH.
>=A0 I don't think the distributed binaries have any hardcoded paths in them=
>=2C except for the $ORIGIN stuff=2C
>=A0=A0 which I think will just be ignored. "Normally" they do=2C but the di=
>stribution build specifically
>=A0=A0 tries to omit them.

I have been using Modula-3 on FreeBSD since 2.x and have never needed
to set LD_LIBRARY_PATH.

And I (almost) always compile outside the /usr/local/... (m3build -O or cm3 -x)

    Mika



More information about the M3devel mailing list