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.
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel