[LTP] [PATCH] cleanup: avoid to generate many redundant obj files
Xiao Yang
ice_yangxiao@163.com
Wed Feb 19 14:35:46 CET 2020
On 2/19/20 9:07 PM, Xiao Yang wrote:
>
> You can build and link libswapon.c directly, as below:
>
> ---------------------------------
>
> # grep MAKE_TARGETS Makefile
> $(MAKE_TARGETS): %: ../swapon/libswapon.c
>
> ---------------------------------
>
> Sorry, I am not sure if your improvement is the best way.
>
Hi Li,
The root cause is that libswapon.c is built as an object
file(libswapon.o) instead of a library file(libswapon.so/libswapon.a).
Sorry, I just feel strange about the left *.o files.
Thanks,
Xiao Yang
More information about the ltp
mailing list