public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* [RFC/PATCH] newlib: enable automatic dependency generation
@ 2022-03-17  2:16 Mike Frysinger
  2022-03-17  6:25 ` Sebastian Huber
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2022-03-17  2:16 UTC (permalink / raw)
  To: newlib

This was disabled as part of the migration away from the cygnus option
as that implied no-dependencies.

We currently have 1-to-1 updates enabled -- if you touch a .c file,
the corresponding .o file will be rebuilt.  But if you touch a header
file, none of the files using that get rebuilt.

Not sure how much we care.  I think we want this since it's probably
what people are expecting.  It increases the size of the Makefile a
bit, and adds a little build overhead to generate & process.
---
 newlib/Makefile.in  | 38502 ++++++++++++++++++++++++++++++++++--------
 newlib/acinclude.m4 |     2 +-
 newlib/aclocal.m4   |   316 +
 newlib/configure    |   442 +
 4 files changed, 32111 insertions(+), 7151 deletions(-)

diff --git a/newlib/acinclude.m4 b/newlib/acinclude.m4
index 424460dc76a8..9e4834987716 100644
--- a/newlib/acinclude.m4
+++ b/newlib/acinclude.m4
@@ -114,7 +114,7 @@ AC_SUBST(abs_newlib_basedir)
 
 AC_CANONICAL_HOST
 
-AM_INIT_AUTOMAKE([foreign no-installinfo no-dependencies no-dist no-define subdir-objects 1.15.1])
+AM_INIT_AUTOMAKE([foreign no-installinfo no-dist no-define subdir-objects 1.15.1])
 AM_MAINTAINER_MODE
 AM_SILENT_RULES(yes)
 
-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFC/PATCH] newlib: enable automatic dependency generation
  2022-03-17  2:16 [RFC/PATCH] newlib: enable automatic dependency generation Mike Frysinger
@ 2022-03-17  6:25 ` Sebastian Huber
  2022-03-17  9:49   ` Corinna Vinschen
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Huber @ 2022-03-17  6:25 UTC (permalink / raw)
  To: Mike Frysinger, newlib

On 17/03/2022 03:16, Mike Frysinger wrote:
> This was disabled as part of the migration away from the cygnus option
> as that implied no-dependencies.
> 
> We currently have 1-to-1 updates enabled -- if you touch a .c file,
> the corresponding .o file will be rebuilt.  But if you touch a header
> file, none of the files using that get rebuilt.
> 
> Not sure how much we care.  I think we want this since it's probably
> what people are expecting.  It increases the size of the Makefile a
> bit, and adds a little build overhead to generate & process.

I think the proper dependency tracking should be enabled. This helps 
everyone doing changes in Newlib. The dependency files generated by GCC 
are also sometimes helpful to figure out what is actually used to build 
a file.

-- 
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFC/PATCH] newlib: enable automatic dependency generation
  2022-03-17  6:25 ` Sebastian Huber
@ 2022-03-17  9:49   ` Corinna Vinschen
  0 siblings, 0 replies; 3+ messages in thread
From: Corinna Vinschen @ 2022-03-17  9:49 UTC (permalink / raw)
  To: newlib

On Mar 17 07:25, Sebastian Huber wrote:
> On 17/03/2022 03:16, Mike Frysinger wrote:
> > This was disabled as part of the migration away from the cygnus option
> > as that implied no-dependencies.
> > 
> > We currently have 1-to-1 updates enabled -- if you touch a .c file,
> > the corresponding .o file will be rebuilt.  But if you touch a header
> > file, none of the files using that get rebuilt.
> > 
> > Not sure how much we care.  I think we want this since it's probably
> > what people are expecting.  It increases the size of the Makefile a
> > bit, and adds a little build overhead to generate & process.
> 
> I think the proper dependency tracking should be enabled. This helps
> everyone doing changes in Newlib. The dependency files generated by GCC are
> also sometimes helpful to figure out what is actually used to build a file.

Right, we want that.


Corinna


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-03-17  9:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-17  2:16 [RFC/PATCH] newlib: enable automatic dependency generation Mike Frysinger
2022-03-17  6:25 ` Sebastian Huber
2022-03-17  9:49   ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).