protobuf-c 中的链接警告

问题描述 投票:0回答:0

构建脚本:

if [  -f ${PWD_PATH}/succeed/protobuf-c ]; then
    echo "git clone https://github.com/protobuf-c/protobuf-c.git"
    eval "git clone https://github.com/protobuf-c/protobuf-c.git"
    eval 'cd protobuf-c && git checkout v1.4.0 && ./autogen.sh && ./configure && make -j$(nproc) && sudo  make install'
    eval 'sudo ln -sf /usr/local/lib/libprotobuf-c.so.1.0.0 /usr/lib/libprotobuf-c.so.1'
    echo "done" > ${PWD_PATH}/succeed/protobuf-c
fi

echo
echo -e "${GREEN}[*] build protobuf-c succeed!${NC}"

构建 protobuf-c 时显示以下警告。 我该如何解决?

Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'
build protocol-buffers llvm linker-errors protobuf-c
© www.soinside.com 2019 - 2024. All rights reserved.