Andrew Haley <aph-gcc@xxxxxxxxxxxxxxxxxxx> wrote: > > The simplest and probably best idea is the most obvious one: replace > your installed gcc with a script that invokes gcc with "-specs=FILE". > You can then add any specs you want in FILE, such as invoking ld with > -rpath. I did that for years, on many Unices, and it works very well, except for one problem. Software with poxious forms of autoconfiguration will poke around your system and select one or other compiler at whim - or, in many cases, a dysfunctional combination of all of them. Unfortunately, MOST modern, complex software does at least some of that and you have to reverse engineer its autoconfiguration to hack around the bugs. That can be anywhere from simple to almost impossible. The only solution to that problem involves the authors of the software, a dark alley and a blunt instrument. Regards, Nick Maclaren, University of Cambridge Computing Service, New Museums Site, Pembroke Street, Cambridge CB2 3QH, England. Email: nmm1@xxxxxxxxx Tel.: +44 1223 334761 Fax: +44 1223 334679