[crosstool-ng/crosstool-ng] bd0ea7: prevent the glibc build from overwriting flags

Alexey Neyman <[email protected]> Sun, 16 Feb 2020 15:22:46 -0800
Newsgroups gmane.comp.gcc.cross-compiling
Message-ID <crosstool-ng/crosstool-ng/push/refs/heads/master/[email protected]>
  Branch: refs/heads/master
  Home:   https://github.com/crosstool-ng/crosstool-ng
  Commit: bd0ea7ed21f140d4e911ff4a63693b54a455c349
      https://github.com/crosstool-ng/crosstool-ng/commit/bd0ea7ed21f140d4e911ff4a63693b54a455c349
  Author: Norbert Lange <[email protected]>
  Date:   2019-10-27 (Sun, 27 Oct 2019)

  Changed paths:
    M scripts/build/libc/glibc.sh

  Log Message:
  -----------
  prevent the glibc build from overwriting flags

The glibc will append the content of the CFLAGS variable,
overriding previous flags.
If unset, the CFLAGS variable is not empty, so explicitly set it.
Instead prepend the default CFLAGS flags.

Signed-off-by: Norbert Lange <[email protected]>


  Commit: 4fa0ba100b8924b27942ff253c5474c655427027
      https://github.com/crosstool-ng/crosstool-ng/commit/4fa0ba100b8924b27942ff253c5474c655427027
  Author: Alexey Neyman <[email protected]>
  Date:   2020-02-16 (Sun, 16 Feb 2020)

  Changed paths:
    M scripts/build/libc/glibc.sh

  Log Message:
  -----------
  Merge pull request #1270 from nolange/prevent_glibc_cflags_override

prevent the glibc build from overwriting flags


Compare: https://github.com/crosstool-ng/crosstool-ng/compare/4897426202e5...4fa0ba100b89