[ECOS] Adding library to libtarget.a

Heiko Panther heiko.panther@web.de
Thu Feb 12 15:48:00 GMT 2004


>>Right. My question should have been, "How do I use a library in a 
>>package?". I've seen how you add source files to a package - with the 
>>compile statement. I found no similar statement to add a library. I only 
>>have the library, not the source files.
> 
> edit the ecos.ecc file. Look at option CYGBLD_GLOBAL_LDFLAGS. You
> should be able to add the extra link parameters there.

I actually tried that. Problem here is the link order. It seems that the 
items from CYGBLD_GLOBAL_LDFLAGS get linked last, but would have been 
needed for libtarget.a, which gets linked earlier. That's why I tried to 
get my lib into the package.

Heiko

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list