How can I use the GCC -frandom-seed=<file name> option with the waf build system?

Joel Sherrill joel at rtems.org
Fri Sep 23 18:27:56 UTC 2022


On Fri, Sep 23, 2022 at 11:49 AM Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:

> On 23/09/2022 18:47, Karel Gardas wrote:
> > On 9/23/22 18:35, Sebastian Huber wrote:
> >> Hello,
> >>
> >> I have a question for the waf experts. How can I use the GCC
> >> -frandom-seed=<file name> option with the waf build system?
> >>
> >>
> https://stackoverflow.com/questions/73829827/how-can-i-use-the-gcc-frandom-seed-file-name-option-with-the-waf-build-system
> >
> > Unix? Why not to use pure and simple -frandom-seed=$RANDOM ? E.g. I hope
> > you'd like to have something there hence went for file name which will
> > give you stable "random" value per every file compiled while $RANDOM
> > will give you more randomness and certainly not the same value per same
> > file...
>
> I would like to have a reproducible build, so I don't want something
> which varies across builds.
>

Why not just pass in a constant? You need it to be the same so waf
reacts the same.

And FWIW $RANDOM isn't the best random number source.

--joel

>
> --
> embedded brains GmbH
> Herr Sebastian HUBER
> Dornierstr. 4
> 82178 Puchheim
> Germany
> email: sebastian.huber at 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/
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20220923/e5facedd/attachment.htm>


More information about the devel mailing list