[fpc-devel] test suite, problem with missing libraries on the target
Bernd Mueller
mueller.b at gmx.net
Mon May 30 11:19:46 CEST 2011
Jonas Maebe wrote:
>
> On 30 May 2011, at 11:04, Bernd Mueller wrote:
>
>> Jonas Maebe wrote:
>>
>>> Isn't it easier to simply copy all compiled libraries to the target
>>> when they are compiled (just like compiled test programs are copied)?
>>
>> this second approach (which works well for me) copies the libraries
>> when the are compiled. No need to expand the %needlibrary directive.
>
> Why do you limit it to Linux targets?
I am not sure about the other targets.
LibraryFileName:= 'lib' + ForceExtension(SplitFileName(PPFile[current]),
'so');
The above code builds the library name out of the test program name. For
example "Test1.pp" becomes "libTest1.so". This cannot be right for a
Windows target for example.
Regards, Bernd.
More information about the fpc-devel
mailing list