[M3devel] rpath woes

John Marino adacore at marino.st
Thu Jun 4 19:57:23 CEST 2015


I'm been finished with my port update for more than 1 day, except for
one tiny problem.  The rpath was wrong after I shifted the installation
to /usr/local/cm3.

I have tried just about every combination of changes to files at
m3-sys/cminstall/src/config-no-install and I can't get the rpath to change.

It's set at "/usr/local/lib", I don't know where it comes from.  I want
it to be "/usr/local/cm3/lib:/usr/local/lib".

At gnuld.common, there are weird definitions of "-Wl,-rpath," but
altering them doesn't help (not even "-W1,-rpath,//$ORIGIN"/../lib"

So I am at a loss where rpath is getting set.  If I knew that, I could
change it.  It seems to ignore all this SYSTEM_LD stuff so it must not
be set.

Any hints or do I have to keep randomly changing anything like looks
like it could be a linker flag?

John



More information about the M3devel mailing list