Neil,
I'm afraid we hadn't anticipated this requirement and, with plain old
makefiles, if you haven't anticipated the issue then it's not going
to be easy to solve. The best I can suggest is to try editing config/
common/vars.mk to add your library to the definition of LDFLAGS and
possibly you might want to add some common include path via
AccumulateIncFlags as well. I suspect this will get you 9/10 the way
there. Unfortunately some of our Makefiles have errors in them which
could mask this from working. Feel free to return any patches you
find you have to make and I'll see that they get incorporated :-)
One day we'll get around to replacing make with a proper
configuration and build system like CMake and this kind of problem
will be neatly handled.
On 29 Aug 2007, at 00:50, Neil Killeen wrote:
> Still hoping there is a way to do this rather than
> edit every Makefile in the system :-)
>
> thanks
> Neil
>
>
> On Mon, 27 Aug 2007 10:23:54 +0100, Neil Killeen
> <[log in to unmask]> wrote:
>
>> Hi
>>
>> I need to add some libraries that the linker will always link with
>> for our SGI Altix platform
>> when building FSL with the Intel compiler.
>>
>> What is the recommended way to do this for FSL. It's not obvious
>> from the
>> configuration files where I should add these.
>>
>> WIth 3.3.6 I set a variable LIBS in systemvars.mk (not sure why I
>> did this
>> but it seems to have worked!) but I see in 4.0 many Makefiles
>> over-ride
>> any setting of LIBS and make their own list.
>>
>> I'd rather messing with environment variables (e.g.
>> LD_LIBRARY_PATH for shared libs) etc
>>
>>
>> thanks
>> Neil
>> ===========================================================
> =============
|