[LITMUS^RT] [PATCH 0/2] Add module functionality to liblitmus

Manohar Vanga mvanga at mpi-sws.org
Wed Feb 5 22:23:55 CET 2014


>> Can’t you provide an explicit rule to call the linker?
> 
> To clarify, this test within ft_tools seems to work just fine:
> 
>> obj-ftsort = ftsort.o timestamp.o mapping.o
>> abc: ${obj-ftsort}
>>        $(CC) -o $@ $(LDFLAGS) $+
> 
> 'make abc’ results in a working binary called ‘abc’.

Yes this is what I’m doing. It wasn’t exactly a “help me” post as much as a “darn it’s a little inelegant” post :-)

> Basically, you want to recreate the following line to the extent that it’s needed:
> 
> 	$(CC) -o $@ $(LDFLAGS) ${ldf-$@} $(filter-out liblitmus.a,$+) $(LOADLIBS) $(LDLIBS) ${liblitmus-flags} ${lib-$@}
> 
> 	With context: https://github.com/LITMUS-RT/liblitmus/blob/master/Makefile#L238

Yes, I used this with the modules patch. Thanks!

—
/mvanga





More information about the litmus-dev mailing list