Uploaded image for project: 'Mynewt'
  1. Mynewt
  2. MYNEWT-858

Test package lflags ignored by `newt test`

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • v1_4_0_rel
    • Newt
    • Security Level: Public (Viewable by anyone)

    Description

      If you add the following to a test package:

      pkg.lflags:
          - "-foo"
      

      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.

      Attachments

        Issue Links

          Activity

            People

              sterling Sterling Hughes
              ccollins476 Christopher Collins
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: