Bug 6697

Summary: link error by libgcov when compile with coverage option
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.zh>
Component: coreAssignee: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.zh>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher, sgw
Version: unspecified   
Target Milestone: 1.7   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
patch for libgcov none

Description Nobuhiro Iwamatsu 2014-09-09 00:45:51 UTC
Created attachment 2115 [details]
patch for libgcov

When a user takes coverage in gcc of SDK, it becomes the link error in SDK 
because there is not libgcov.a.

----
ld: cannot find -lgcov
collect2: error: ld returned 1 exit status
----

I create a patch which revice this problem.
Comment 1 Saul Wold 2014-09-11 14:41:51 UTC
Nobuhiro, your patch looks correct except for doing a "PR" bump, can you please submit this patch to the openembedded-core@lists.openembedded.org, which is the correct way to propose patches for the project.  Thanks
Comment 2 Nobuhiro Iwamatsu 2014-09-11 23:31:49 UTC
Sure. I will do.

(In reply to comment #1)
> Nobuhiro, your patch looks correct except for doing a "PR" bump, can you
> please submit this patch to the openembedded-core@lists.openembedded.org,
> which is the correct way to propose patches for the project.  Thanks
Comment 3 Nobuhiro Iwamatsu 2014-10-08 02:54:56 UTC
This patch alredy was applied OE-core and poky.

OE-core: 99b26dba6e4f5a64579f183883265498000e3104
Poky: a7636ec315a9e3f845eef860253e34e085782da0

(In reply to comment #2)
> Sure. I will do.
> 
> (In reply to comment #1)
> > Nobuhiro, your patch looks correct except for doing a "PR" bump, can you
> > please submit this patch to the openembedded-core@lists.openembedded.org,
> > which is the correct way to propose patches for the project.  Thanks
Comment 4 Saul Wold 2014-11-14 18:56:15 UTC
If the patch is already applied, I will close this bug!