ccollins476ad closed pull request #133: MYNEWT-858 Collect all package lflags 
during link.
URL: https://github.com/apache/mynewt-newt/pull/133
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/newt/builder/build.go b/newt/builder/build.go
index 383469e8..52ba48a3 100644
--- a/newt/builder/build.go
+++ b/newt/builder/build.go
@@ -372,6 +372,13 @@ func (b *Builder) link(elfName string, linkerScripts 
[]string,
                        archiveNames[i] = filepath.ToSlash(archiveName)
                }
                pkgNames = append(pkgNames, archiveNames...)
+
+               // Collect lflags from all constituent packages.
+               ci, err := bpkg.CompilerInfo(b)
+               if err != nil {
+                       return err
+               }
+               c.AddInfo(ci)
        }
 
        c.LinkerScripts = linkerScripts


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to