You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "Christopher Collins (JIRA)" <ji...@apache.org> on 2017/10/19 18:57:00 UTC

[jira] [Updated] (MYNEWT-858) Test package lflags ignored by `newt test`

     [ https://issues.apache.org/jira/browse/MYNEWT-858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christopher Collins updated MYNEWT-858:
---------------------------------------
    Description: 
If you add the following to a test package:

{noformat}
pkg.lflags:
    - "-foo"
{noformat}

and then test the package with `newt test`, the flag does not get passed to gcc during linking.

Newt currently only reads lflags from the following package types:
* target
* app
* bsp
* compiler

At the very least, the test package's lflags should be used when a unit test is linked via {{newt test}}.  Alternatively, it may make more sense to gather the lflags from all constituent packages during the link phase.


  was:
If you add the following to a test package:

{noformat}
pkg.lflags:
    - "-foo"
{noformat}

and then test the package with `newt test`, the flag does not get passed to gcc during linking.

Newt currently only reads lflags from the following package types:
* target
* app
* bsp
* compiler

At the very least, the test package's lflags should be used when a unit test is linked via {newt test}.  Alternatively, it may make more sense to gather the lflags from all constituent packages during the link phase.



> Test package lflags ignored by `newt test`
> ------------------------------------------
>
>                 Key: MYNEWT-858
>                 URL: https://issues.apache.org/jira/browse/MYNEWT-858
>             Project: Mynewt
>          Issue Type: Bug
>      Security Level: Public(Viewable by anyone) 
>          Components: Newt
>            Reporter: Christopher Collins
>            Assignee: Sterling Hughes
>             Fix For: v1_3_0_rel
>
>
> If you add the following to a test package:
> {noformat}
> pkg.lflags:
>     - "-foo"
> {noformat}
> and then test the package with `newt test`, the flag does not get passed to gcc during linking.
> Newt currently only reads lflags from the following package types:
> * target
> * app
> * bsp
> * compiler
> At the very least, the test package's lflags should be used when a unit test is linked via {{newt test}}.  Alternatively, it may make more sense to gather the lflags from all constituent packages during the link phase.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)