Bug #13267
closedtools libld build picks up normal sgs libs
100%
Description
We build an ld to run on the build host to make it easier to use new features in the build. To do this, we try to reuse the normal Makefiles from cmd/sgs. The libld Makefile.com in cmd/sgs/libld ends up adding search paths to the build directories of various cmd/sgs components. When doing a full build, this ends up being fine because there's nothing there and the tools search paths which come later are fine. However, when doing an incremental build, it will actually find and link against these first, which can be especially problematic if they require features from the proto area that aren't on the build system. The solution to this is to just fix up the library paths in the tools Makefile and make sure we don't pick up anything there.
Related issues
Updated by Robert Mustacchi about 3 years ago
- Blocks Feature #13274: enable -fstack-protector-strong by default in user land added
Updated by Electric Monk about 3 years ago
- Status changed from New to Closed
- % Done changed from 80 to 100
git commit 90f7985f020eb82d06bd0d75396ff794105f7528
commit 90f7985f020eb82d06bd0d75396ff794105f7528 Author: Robert Mustacchi <rm@fingolfin.org> Date: 2020-11-04T15:32:25.000Z 13267 tools libld build picks up normal sgs libs Reviewed by: Richard Lowe <richlowe@richlowe.net> Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Gordon Ross <gordon.w.ross@gmail.com>