If I build a library (for example Quantlib: http://sourceforge.net/projects/quantlib/files/QuantLib/1.2/QuantLib-1.2.tar.gz/download), I see that my userid is encoded in the built library.
./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
Is this normal?
Is there anyway to prevent the userid from appearing in the locally built library?
Thanks,
Raj
This is most likely because
-O2 -g(which is the default mostconfigurescripts will use when building withgcc)./home/rajanikanthor some suchYou can avoid this by building non-debug version (
make -j3 CFLAGS=-O2), or by building it in a “generic” directory, e.g./tmp/build-quantlib