MySQL社区
标题:
如何编译MySQL,使得显示详细的编译信息
[打印本页]
作者:
chx319
时间:
2015-1-6 15:41
标题:
如何编译MySQL,使得显示详细的编译信息
按照官方提供的编译MySQL方法:先cmake,再make,然后make install。这样,编译的输出如下:
Building C object sql/CMakeFiles/sql.dir/__/sql-common/my_user.c.o
Building C object sql/CMakeFiles/sql.dir/__/sql-common/pack.c.o
[ 97%] Building CXX object sql/CMakeFiles/sql.dir/__/sql-common/client_authentication.cc.o
[ 97%] Building CXX object libmysqld/CMakeFiles/sql_embedded.dir/__/sql/tztime.cc.o
我希望可以得到更详细的信息,比方说使用的是哪个编译器,编译哪个文件生成上述的目标文件。类似编译slurm的make输出一样。
一下是编译slurm的一小段输出,该输出可以看出编译器是gcc,源码文件是assoc_mgr.c,目标文件是assoc_mgr.lo。
10 make[3]: Entering directory `/home/chx319/save-huawei-results-68/slurm/src/common'
11 /bin/sh ../../libtool --tag=CC --mode=compile lcc -fdump-tree-cfg -save-temps -DHAVE_CONFIG_H -I. -I../.. -I../../slur m -I../.. -fplugin=/home/hsl/hsl/dld-v9/gcc_plugin/plugin.so -pthread -fno-gcse -MT assoc_mgr.lo -MD -MP -MF .deps/a ssoc_mgr.Tpo -c -o assoc_mgr.lo assoc_mgr.c
不知道哪位大牛有办法解决这个问题?
多谢了!
欢迎光临 MySQL社区 (http://www.mysqlpub.com/)
Powered by Discuz! X3.2