gpt4 book ai didi

linux - 本地构建库中的用户标识

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:08:33 31 4
gpt4 key购买 nike

如果我构建一个库(例如 Quantlib: http://sourceforge.net/projects/quantlib/files/QuantLib/1.2/QuantLib-1.2.tar.gz/download ),我会看到我的用户 ID 在构建的库中进行了编码。

./configure --prefix=/usr/local --with-boost-include=/usr/include/boost --with-boost-lib=/usr/lib && make -j3 && sudo make install

$ grep rajanikanth /usr/local/lib/libQuantLib.*
Binary file /usr/local/lib/libQuantLib.a matches
Binary file /usr/local/lib/libQuantLib.so matches
Binary file /usr/local/lib/libQuantLib.so.0 matches
Binary file /usr/local/lib/libQuantLib.so.0.0.0 matches

这正常吗?

有什么办法可以防止 userid 出现在本地构建的库中?

谢谢,拉吉

最佳答案

I see that my userid is encoded in the built library.

这很可能是因为

  1. 您使用 COPTS=-O2 -g 构建库(这是大多数 configure 脚本在使用 gcc 构建时使用的默认设置) .
  2. 你将它构建在你的主目录中,它看起来像 /home/rajanikanth 或类似的

Is there anyway to prevent the userid from appearing in the locally built library?

您可以通过构建非调试版本(make -j3 CFLAGS=-O2)或在“通用”目录中构建它来避免这种情况,例如/tmp/build-quantlib

关于linux - 本地构建库中的用户标识,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9958473/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com