[ECOS] Adding library to libtarget.a

Andrew Lunn andrew@lunn.ch
Thu Feb 12 15:56:00 GMT 2004


> 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.

OK. Another idea. Its a hack! Unpack the library with ar so you get
the .o files. Put these into a new package. In the cdl for the new
package instead of listing the source files list the .o files. With
some luck the build system dependencies will see that it does not need
to compile these file. It just needs to insert them into libtarget.a.

Might work?

      Andrew

-- 
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