于 2017/10/28 下午9:09, Bruno Haible 写道: > Jia Zhang wrote: >>> gcc: error: @LIB_CRYPTO@: No such file or directory >> >> Thanks for your comments. I fixed it and the test passes. I just >> feel strange that test-sm3 was built out without error if I >> compiled gnulib with coreutils together. > > It passed with coreutils because coreutils requests other crypto > modules as well, and these set LIB_CRYPTO. > > The particular thing about Gnulib is that people can use an > *arbitrary subset* of its set of modules. Therefore, when we add a > module we must make sure that 1. the module works standalone, > without any other modules, 2. conflicts with other modules are > avoided. 'gnulib-tool --create-testdir' is the tool for verifying > this.
Make sense. Thanks you very much! Jia > > Bruno >