如何將tcov插入Make File

[英]How can I insert tcov to Make File


How can i use tcov on Solaris in make file? My make file makes .o files and then the .so files which is copying to the lib's folder. I work with Oracle BRM

如何在make文件中使用Solaris上的tcov?我的make文件生成.o文件,然后是復制到lib文件夾的.so文件。我使用Oracle BRM

CFLAGS_solaris= -g -xcg92 -xprofile=tcov

C++FLAGS_solaris= -g -library=%none -DPIN_NOT_USING_OSTREAM 

CPPFLAGS = -I$(INCDIR) -I$(INCDIR_MDS) -DPCMCPP_CONST_SAFE 

LDFLAGS_solaris= -G

SL_EXT_solaris= so

and i tried also:

我也嘗試過:

 this makes the .so file;
$(LIBBILL): $(OBJECTS) $(C++_OBJECTS) $(INCFILES) Makefile
	$(C++) -o $(LIBBILL) $(LDFLAGS) $(OBJECTS) $(C++_OBJECTS) -lm -lpsiu_for_cm -xprofile=tcov 
    
   
and this makes the .o files
$(OBJECTS): $(INCFILES) Makefile $(FILES)
	$(CC) -c $(CFLAGS) $(CPPFLAGS)  $(FILES)

the result of that is the brm can't start.

結果就是brm無法啟動。

1 个解决方案

#1


If someone is looking for an answer I found the solution. You have to use -xprofile=tcov while compiling .o files and also when you links .so file ;)

如果有人在尋找答案,我找到了解決方案。在編譯.o文件時以及鏈接.so文件時必須使用-xprofile = tcov;)


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2015/05/04/7210ae0ab2f8566c6379618568ed01aa.html



 
粤ICP备14056181号  © 2014-2021 ITdaan.com