On 26 Nov 2014 11:20, Venkatesh Vivekanandan wrote: > Problem is, platform linker command doesn't have > --whole-archive/--no-whole-archive around the lib. Instead it comes later > in the command line.
iirc, libtool likes to sort things for you > How to propogate the --whole-archive/--no-whole-archive all the way down to > example app linking?. Importantly, it should be around the -lmyextlib. I > can make changes only at platform/targetA/Makefile.am as example/* is > common across all other platforms. > > Note: Tried libtool's suggestion of -Wl,'-whole-archive -lfoo > -no-whole-archive' as mentioned in > lists.gnu.org/archive/html/libtool/2002-05/msg00043.html but that didn't > work. what do you mean by "didn't work" ? maybe quoting is messing you up ? you could try: -Wl,--whole-archive,-lfoo,--no-whole-archive -mike
signature.asc
Description: Digital signature
_______________________________________________ https://lists.gnu.org/mailman/listinfo/libtool