Closed leleliu008 closed 1 year ago
content of /lib/pkgconfig/libuv.pc is correct:
prefix=/home/vagrant/pkgsrc-packages
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: libuv
Version: 1.44.2
Description: multi-platform support library with a focus on asynchronous I/O.
URL: http://libuv.org/
Libs: -L${libdir} -luv -lkvm
Cflags: -I${includedir}
work around
ar x /usr/lib/libkvm.a
ar x /home/vagrant/pkgsrc/devel/cmake/work/.buildlink/lib/libuv.a
ar crs libuv.a *.o
cp libuv.a /home/vagrant/pkgsrc/devel/cmake/work/.buildlink/lib/libuv.a
bmake install
I add
/etc/mk.conf
toLDFLAGS+= -static -pthread
to build static linked executable,but it failed and report following:The reason is
-lkvm -luv
should be changed to-luv -lkvm
. how should I do?