public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* [crosstool-ng/crosstool-ng] 44ee41: expat: Tidy up and correct configure flags
@ 2016-01-03 16:10 Bryan Hundven
  0 siblings, 0 replies; only message in thread
From: Bryan Hundven @ 2016-01-03 16:10 UTC (permalink / raw)
  To: crossgcc

[-- Attachment #1: Type: text/plain, Size: 4889 bytes --]

  Branch: refs/heads/master
  Home:   https://github.com/crosstool-ng/crosstool-ng
  Commit: 44ee416289b08dc454f4d63864314f0ef6c2ba7f
      https://github.com/crosstool-ng/crosstool-ng/commit/44ee416289b08dc454f4d63864314f0ef6c2ba7f
  Author: Ray Donnelly <mingw.android@gmail.com>
  Date:   2016-01-03 (Sun, 03 Jan 2016)

  Changed paths:
    M scripts/build/companion_libs/210-expat.sh

  Log Message:
  -----------
  expat: Tidy up and correct configure flags

Build shared builds for host unless CT_STATIC_TOOLCHAIN.
In all other situations, build statically, as before.

It is necessary that the static/shared-ness of expat matches
that of gettext on Cygwin/MinGW-w64 as they can't be linked
together if they don't match, so we follow the same logic.

Signed-off-by: Ray Donnelly <mingw.android@gmail.com>


  Commit: 29f03e3295f506e65fa5d064ae33164413f4bb1b
      https://github.com/crosstool-ng/crosstool-ng/commit/29f03e3295f506e65fa5d064ae33164413f4bb1b
  Author: Ray Donnelly <mingw.android@gmail.com>
  Date:   2016-01-03 (Sun, 03 Jan 2016)

  Changed paths:
    A patches/gcc/5.3.0/370-gcc-plugin-Win-Dont-need-undefined-extern-var-refs-nor-fpic.patch

  Log Message:
  -----------
  Cygwin + MinGW-w64: GCC 5+ plugin support

Define PICFLAG, UNDEFINEDPREAMBLE and UNDEFINEDCODE to nothing since Windows
doesn't have -fPIC (GCC warns) and can't handle undefined variable references
(which are not needed anyway).

Signed-off-by: Ray Donnelly <mingw.android@gmail.com>


  Commit: 9b4b569741f820b4b8ff725dc37f0323dbe0ead8
      https://github.com/crosstool-ng/crosstool-ng/commit/9b4b569741f820b4b8ff725dc37f0323dbe0ead8
  Author: Ray Donnelly <mingw.android@gmail.com>
  Date:   2016-01-03 (Sun, 03 Jan 2016)

  Changed paths:
    A patches/gcc/5.3.0/380-gcc-plugin-POSIX-include-sys-select-h.patch

  Log Message:
  -----------
  POSIX: Fix GCC 5+ plugin build failure on Cygwin

Cygwin follows POSIX IEEE Std 1003.1, 2004 Edition spec
for the select() fuction as described at:

http://pubs.opengroup.org/onlinepubs/009695399/functions/pselect.html

.. so we must #include <sys/select.h> for the declaration.

Signed-off-by: Ray Donnelly <mingw.android@gmail.com>


  Commit: 644522fcd0e1788ba2d03630c19835ea617e452d
      https://github.com/crosstool-ng/crosstool-ng/commit/644522fcd0e1788ba2d03630c19835ea617e452d
  Author: Ray Donnelly <mingw.android@gmail.com>
  Date:   2016-01-03 (Sun, 03 Jan 2016)

  Changed paths:
    M scripts/build/companion_libs/320-libiconv.sh

  Log Message:
  -----------
  libiconv: configure with --disable-nls

On Windows a build failure can be triggered during the
build of the static iconv if a dynamic iconv is already
present:

There's a circular dependency between libiconv and gettext
which (on a system with a dynamic gettext (and thus iconv)
installed in the system prefix) causes a failure to build
iconv.exe statically if it is built with nls ..

.. Which needs gettext
.. which depends on libiconv
.. so libtool finds a dynamically linked libgettext.la
.. and therefore presents ld with the dll import library
     libiconv.dll.a when linking iconv.exe
.. as well as the static libiconv.a that it has just built!
.. leading to multiply defined symbols from iconv.

Therefore, we build it without nls. If it later turns out
that we need it to be built with nls, then I will have to
build it in two passes (common practice when bootstrapping
GNU/Linux distros, MSYS2 and probably Cygwin and Homebrew).

Signed-off-by: Ray Donnelly <mingw.android@gmail.com>


  Commit: 24d17220a1a11410c980c784b729f4466ab11f3b
      https://github.com/crosstool-ng/crosstool-ng/commit/24d17220a1a11410c980c784b729f4466ab11f3b
  Author: Ray Donnelly <mingw.android@gmail.com>
  Date:   2016-01-03 (Sun, 03 Jan 2016)

  Changed paths:
    M scripts/build/companion_libs/200-libelf.sh

  Log Message:
  -----------
  libelf: Cygwin fix for UNC paths

If destdir was / and prefix began with /
then we would attempt to install libelf
to a path beginning with // which is a
UNC path on Cygwin. This is generally
incorrect.

Signed-off-by: Ray Donnelly <mingw.android@gmail.com>


  Commit: 9375a9e41193a5af532c98ef1478ab122170bad8
      https://github.com/crosstool-ng/crosstool-ng/commit/9375a9e41193a5af532c98ef1478ab122170bad8
  Author: Bryan Hundven <bryanhundven@gmail.com>
  Date:   2016-01-03 (Sun, 03 Jan 2016)

  Changed paths:
    A patches/gcc/5.3.0/370-gcc-plugin-Win-Dont-need-undefined-extern-var-refs-nor-fpic.patch
    A patches/gcc/5.3.0/380-gcc-plugin-POSIX-include-sys-select-h.patch
    M scripts/build/companion_libs/200-libelf.sh
    M scripts/build/companion_libs/210-expat.sh
    M scripts/build/companion_libs/320-libiconv.sh

  Log Message:
  -----------
  Merge pull request #291 from diorcety-ctng/cygwin-more-fixes

Cygwin more fixes


Compare: https://github.com/crosstool-ng/crosstool-ng/compare/6f1f55e9d224...9375a9e41193

[-- Attachment #2: Type: text/plain, Size: 71 bytes --]

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-01-03 16:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-03 16:10 [crosstool-ng/crosstool-ng] 44ee41: expat: Tidy up and correct configure flags Bryan Hundven

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).