2012-03-31 26 views
1

如果我構建一個庫(例如Quantlib:http://sourceforge.net/projects/quantlib/files/QuantLib/1.2/QuantLib-1.2.tar.gz/download),我看到我的用戶標識是在構建的庫中編碼的。userid在本地構建的庫

./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 

這是正常的嗎?

是否有防止用戶標識出現在本地構建的庫中?

感謝, 拉吉

回答

1

我看到我的用戶ID在建庫編碼。

這很可能是因爲

  1. 你建立與科普特人庫= -O2 -g(這是與gcc建設時最configure腳本將使用默認值)。
  2. 你建立你的home目錄下,它看起來像/home/rajanikanth或一些這樣的

反正是有防止用戶ID出現在本地建庫?

您可以通過構建非調試版本(make -j3 CFLAGS=-O2)或將其構建在「通用」目錄中來避免此問題,例如, /tmp/build-quantlib

+0

謝謝,建立它在/ tmp目錄中工作。 – Raj 2012-03-31 23:34:51