[CRIU] [PATCH] test/others/rpc: fix build error

Cyrill Gorcunov gorcunov at gmail.com
Fri Nov 25 10:32:56 PST 2016


On Fri, Nov 25, 2016 at 08:01:24PM +0530, Venkateswara Rao Mandela wrote:
> Build in tests/others/rpc folder was failing due to the use of LDFLAGS
> variable instead of LDLIBS variable to link libprotobuf-c. The makefile
> uses implicit build rules.
> 
> $(CC) $(LDFLAGS) n.o $(LOADLIBES) $(LDLIBS)
> 
> Using LDFLAGS places -llibprotobuf-c before the object files, preventing
> the library from being searched for required functions.  This commit
> changes the variable to LDLIBS instead to fix the issue.
> 
> Signed-off-by: Venkateswara Rao Mandela <venkat.mandela at ti.com>
Reviewed-by: Cyrill Gorcunov <gorcunov at openvz.org>


More information about the CRIU mailing list