Web lists-archives.com

Re: [Mingw-users] arguments utilised for gcc downloads




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 28/02/17 00:56, David Gressett wrote:
> B. Issue a series of export commands. There are nine of them:

This smacks of "cargo cult" programming ... something we really 
need to get away from.

> export GCC_EXEC_PREFIX=/mingw/lib/gcc/
> export LDFLAGS="--verbose -L/mingw/mingw32/lib -B/mingw/mingw32/lib"
> export LDFLAGS_FOR_TARGET="--verbose -L/mingw/mingw32/lib -B/mingw/mingw32/lib"
> export LDFLAGS_FOR_BUILD="--verbose -L/mingw/mingw32/lib -B/mingw/mingw32/lib"
> export STAGE1_LDFLAGS="--verbose -L/mingw/mingw32/lib -B/mingw/mingw32/lib"
> export POSTSTAGE1_LDFLAGS="--verbose -L/mingw/mingw32/lib -B/mingw/mingw32/lib"
> export BOOT_LDFLAGS="--verbose -L/mingw/mingw32/lib -B/mingw/mingw32/lib"
> export TOOLS_LIBS="--verbose -L/mingw/mingw32/lib -B/mingw/mingw32/lib"
> export SYSLIBS="--verbose -L/mingw/mingw32/lib -B/mingw/mingw32/lib"

How many of them do you *really* need; indeed, *why* do you need 
*any* of them?

> C. Issue the actual make command that does the compilation (3). 
> This is a really long command line. I'm going to break it into pieces to 
> make it easier to read.
> 
> make  LDFLAGS_FOR_TARGET="--verbose -L/mingw/mingw32/lib -B/mingw/mingw32/lib"
>  LDFLAGS_FOR_BUILD="--verbose -L/mingw/mingw32/lib -B/mingw/mingw32/lib" 
>  STAGE1_LDFLAGS="--verbose -L/mingw/mingw32/lib -B/mingw/mingw32/lib" 
>  POSTSTAGE1_LDFLAGS="--verbose -L/mingw/mingw32/lib -B/mingw/mingw32/lib" 
>  BOOT_LDFLAGS="--verbose -L/mingw/mingw32/lib -B/mingw/mingw32/lib" 
>  TOOLS_LIBS="--verbose -L/mingw/mingw32/lib -B/mingw/mingw32/lib" 
>  SYSLIBS="--verbose -L/mingw/mingw32/lib -B/mingw/mingw32/lib"
>   LDFLAGS="--verbose -L/mingw/mingw32/lib -B/mingw/mingw32/lib"
>  2>&1 | tee ../../manual-compile.log
> 
> You can see that there is a lot of duplication of the export commands
> here.

Indeed ... which begs the question: what on earth was the purpose 
of redundantly cluttering up the environment with all of them?

- -- 
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQIcBAEBAgAGBQJYtdyrAAoJEMCtNsY0flo/fmoP/j2U04KJbdlVLBkrtOuqMWAU
zi1EMvymk7BcZxNMf30eUkMEN8Tj222R/Xl/enyAXTZ9GjjAgEEqcxrzH1OxaJzA
YhEnR1z+/pp9vd20LUQjUcllZqPPdLai3VD8Uzx/g2ENqj/FJ5ZTCYZNBzySfWD1
Kj0nI8c0PZ0wUMbdxd5lCxMqfsD7qbav4MxumGBa0QJa4gk+RfeUIRpR7gBFi/Vd
TgghbImBleEkmlRJsTskMpufLANd7aAcyO1jY71WpVydebKmI67qKyJmVeqP+pvT
KTBalEy5raJ1KBCuXNWdPYk+vW0hx6YP3AbOSg6KTPj0IwN/uf0nj+IPQUb4lg4b
aC73SCN6fkcj6vyzwuIEIa1Pa5cyocARhurLZFX2bt8tg4nhU1kyHLC/DgosiKGa
t+sCrnLj40Faw7rMtGY4WHQUGZ7Vjt898LVY8kr4YmTFVEgT0IYC4JTrY6cFueeF
u6knITWU62nIzvLyttS6y0vnZLh+DbyQ9juRXv2QMWLZ4f6X2Mq0pPQyntOrcT3/
X8j+7XC7UVl09M138hpP/YlqJWQQoQoc6LiUQ3GdqSPsWCDZOXjd/XvPvhalMu6j
Gd297AHELEh3Eh9s2+E3A6AoqtzncstuQjs/7DGtf3+w7fELqrnp/QXoTEpw/wO0
x1LpN8yODkInhwwcbh8G
=msnc
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe