[M3devel] rpath woes

John Marino adacore at marino.st
Fri Jun 5 07:50:33 CEST 2015


On 6/5/2015 06:16, Jay K wrote:
>  The FreeBSD4 users were surprisingly vocal surprisingly recently.
>  So I put some work into it.
>  I agree it is an old system.

It's completely unsupported (for 7 years now) and they don't need the
latest M3 right?  Old release still work fine, that should be enough
justification to change this on trunk.



>  Linux.common and FreeBSD.common look very similar but I agree different
>  and if it is working for you, good, I can ignore it?
>  I guess the main thing was "-Wl,-z,origin"? Needed to make $ORIGIN work?
>  Was this right for FreeBSD 5 or 6 or 7 or 8?

yes.  I am using the latest binutils (thus latest ld) with M3.  The base
ld is ancient and hand maintained (a GPLv3 issue) so I don't know,
Actually, the linux way is opposite: It explicitly defines SYSTEM_LD
rather than use flags for SYSTEM_CC.  So rather than flags, we are
talking about the approach.

Really nobody with a supported FreeBSD release needs to build from
scratch because it exists in ports.   If anybody absolutely wants to,
just say "emulates what the port is doing".  This is actually easier
said than done because in addition to using the latest binutils, there
are a number of inline substitutions that are done, see post-patch
target here, starting line 78:

https://svnweb.freebsd.org/ports/head/lang/modula3/Makefile?revision=388555&view=markup

line 85 is where newer gcc and newer as is set for m3.

John



More information about the M3devel mailing list