Commit Graph

4069 Commits

Author SHA1 Message Date
Alexey Neyman
bfcc1e112a Merge pull request #635 from stilor/macos-skip-locales
Skip locales on macos
2017-03-07 08:51:43 -08:00
Alexey Neyman
456cccc0a7 Merge pull request #634 from stilor/macos-canadian
A couple of fixes for canadian samples on macos
2017-03-07 08:51:35 -08:00
Alexey Neyman
ea7f559ef4 Merge pull request #627 from dankm/freebsd
FreeBSD build support
2017-03-07 08:50:43 -08:00
Alexey Neyman
2ef7d36efb Disable format warnings for clang
It picks up gettext string and results in [ERROR] messages from ct-ng
when gettext strings happen inside an error() call.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-07 00:15:29 -08:00
Alexey Neyman
3e94b4f680 Skip building locales on macos, too
--enable-hacker-mode is not sufficient, in 2.25 configure then
fails while checking for sysdeps fragments that apply to a given
configuration, and with that worked around, fails on binutils &
compiler version check.

In brief: if someone wants locales on cygwin/macos, you'd have to
implement cross-localedef (similar to cross-rpcgen) in glibc and
submit it upstream.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-06 23:12:16 -08:00
Alexey Neyman
b3b94e4807 Only add clang-specific flags to clang
I.e., only to CFLAGS_FOR_BUILD if the build is canadian.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-06 18:57:12 -08:00
Alexey Neyman
6cdf0df01b Use CHOST instead of CROSS_PREFIX
The latter does not prevent zlib's configure from overriding 'AR' with
/usr/bin/libtool on macos, and that breaks canadian crosses.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-06 18:57:12 -08:00
Alexey Neyman
272c010874 Merge pull request #633 from stilor/double-dot-breaks-reloc
Sanitize CT_PREFIX_DIR, too
2017-03-06 18:52:42 -08:00
Dan McGregor
a511f73276 Drop the stat64 Cygwin patch
It's not needed now that it's been moved to glibc.sh

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
2017-03-06 08:56:40 -06:00
Dan McGregor
7f961026c1 Explicitly use gcc for GMP
GMP's configure script tries to be too smart, and if it determines
that it's not cross-compiling it chooses gcc or cc instead of the
wrapper we create at the start of the build.

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
2017-03-06 08:56:36 -06:00
Alexey Neyman
120792a97d Sanitize CT_PREFIX_DIR, too
Having .. in it breaks GCC's relocatability.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-05 16:22:40 -08:00
Alexey Neyman
489ea6d6df Merge pull request #632 from stilor/fix-glibc-2.22
Backport patches to glibc 2.14+
2017-03-05 09:49:04 -08:00
Alexey Neyman
a82b4461f9 Backport patches to glibc 2.14+
... fix building on ARM.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-04 20:14:51 -08:00
Alexey Neyman
dedfe6905a Merge pull request #630 from stilor/upgrades
Final batch of updates before 1.23
2017-03-03 19:13:26 -08:00
Alexey Neyman
69f95de8b0 Bump kernel versions to latest on kernel.org
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-03 16:58:39 -08:00
Alexey Neyman
6d5ec0c35b Pick up new revision in elf2flt
... and updated cygwin patch.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-03 16:54:14 -08:00
Alexey Neyman
2f24d5cd75 Add libiconv 1.15
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-03 16:50:31 -08:00
Alexey Neyman
865a095d70 Do not pretend we're downloading anything
... when we're actually don't.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-03 16:45:05 -08:00
Alexey Neyman
1e060114a2 Bump newlib 2.5.0 to 20170228
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-03 16:39:55 -08:00
Alexey Neyman
0465c8b6f2 Add binutils 2.28
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-03 16:37:36 -08:00
Dan McGregor
c88621f740 glibc: hide native c++ executable from build
If glibc's configure finds the host c++ executable it assumes that
c++ should be enabled for the build. In case we don't have cross g++
built yet (ie, for headers), this causes the build to fail creating
C++ headers. So hide C++ from the build.

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
2017-03-01 22:23:39 -06:00
Dan McGregor
a0ab14c4a7 Use BUILD_PREFIX and BUILD_SUFFIX for gcc version
It's possible that "gcc" is not the compiler being used for the build,
so respect BUILD_PREFIX and BUILD_SUFFIX when finding its version.

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
2017-03-01 22:23:38 -06:00
Dan McGregor
6d1bcaa2f5 Use configure to find the processor count
configure.ac now finds how to count the CPUs in a system. Currently
the getconf method and sysctl methods are supported. Adding more is
easy enough.

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
2017-03-01 22:22:13 -06:00
Dan McGregor
f2f782dd1c Bring in FreeBSD support
Check for FreeBSD specific issues, it is mostly the same as Darwin.

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
2017-03-01 22:22:02 -06:00
Alexey Neyman
0b89556019 Merge pull request #628 from stilor/no-install-D
Fix uClibc{,-ng} build on macos
2017-03-01 17:43:35 -08:00
Alexey Neyman
526c144909 Fix uClibc{,-ng} build on macos
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-01 13:39:53 -08:00
Alexey Neyman
25c55cd5d7 Merge pull request #626 from stilor/master
Backport the fix from 2.19 for cross-rpcgen on macos
2017-03-01 00:37:00 -08:00
Alexey Neyman
da5e98b60f Backport the fix from 2.19 for cross-rpcgen on macos
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-01 00:34:48 -08:00
Alexey Neyman
864d1358e0 Merge pull request #625 from stilor/skip-localedef
Skip localedef
2017-02-28 21:52:06 -08:00
Alexey Neyman
98ebad15a0 Merge pull request #624 from stilor/uclibc-no-cp-T
No 'cp -T' on macos
2017-02-28 21:50:09 -08:00
Alexey Neyman
2c2cbd9b9a Add a warning in menuconfig about locales
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-28 20:35:14 -08:00
Alexey Neyman
e7163a46c4 Skip locale build on Cygwin
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-28 20:35:14 -08:00
Alexey Neyman
b04d2e84a8 Avoid -T, it is not available on macos
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-28 18:40:51 -08:00
Alexey Neyman
1595df184d Unobsolete CLooG/ISL versions compatible with 4.9
... or it leaves them with no valid choices.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-28 18:40:00 -08:00
Alexey Neyman
7992f9b05f Merge pull request #619 from stilor/refix-elf2flt
Fix elf2flt build on Cygwin in a different way
2017-02-28 13:28:53 -08:00
Alexey Neyman
43fc8224df Macos needs a local ELF header, too
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-28 12:00:25 -08:00
Alexey Neyman
bb48575141 Fix elf2flt build on Cygwin in a different way
... after discussion with elf2flt maintainer.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-28 11:10:18 -08:00
Alexey Neyman
c8b355ea92 Merge pull request #622 from stilor/missing-linaro-patches
Add patches to Linaro GCC
2017-02-28 11:08:24 -08:00
Alexey Neyman
ed7e671013 Merge pull request #620 from stilor/require-xz
Require xz to be present
2017-02-28 08:41:12 -08:00
Alexey Neyman
99283866cc Add patches to Linaro GCC
Same as the base release as long as they applied.
MUSL patches didn't, removed.

Also, unobsolete Linaro GCC5 now that they rolled out a new release.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-28 00:57:53 -08:00
Alexey Neyman
439cab379e Require xz to be present
Some software starts to adopt xz-only distribution (strace,
gcc-linaro, ...). Better that than deal with cryptic errors like
"cannot find strace-.tar.bz2".

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-27 22:55:57 -08:00
Alexey Neyman
1ec5e7aa34 Merge pull request #618 from stilor/revert-sed-require-gnu-sed
Require GNU sed on macos
2017-02-27 14:16:59 -08:00
Alexey Neyman
b3c23b7fdb Sed version may be reported differently
Either "GNU sed, version" or "gsed (GNU sed)".

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-27 09:33:03 -08:00
Alexey Neyman
2dae1cf816 Require GNU sed
After much struggling with macos (BSD) sed and even getting everything
work in crosstool-ng itself, I had to abandon that because some
components rely on GNU syntax. Specifically, GNU libc uses '/.../{H;g}'
(note absense of the separator after 'g').

So, revert the -r/-E detection and check for sed's being of GNU origin.
MacOS people, sorry, but you'd have to install GNU sed.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-26 20:42:32 -08:00
Alexey Neyman
59bab98b2d Revert "Determine whether -E/-r option selects extended regexp"
This reverts commit 7bcf18bfab.
2017-02-26 19:06:35 -08:00
Alexey Neyman
df1e3e32cf Revert "Fix breakage from sed_r change in some auxiliary scripts"
This reverts commit 5ea3f2967f.
2017-02-26 19:06:10 -08:00
Alexey Neyman
85ae00c1a6 Merge pull request #614 from stilor/elf2flt-cygwin
Fix the build of elf2flt on Cygwin
2017-02-22 22:19:28 -08:00
Alexey Neyman
8397ad2c1a Fix the build of elf2flt on Cygwin
The -lcygwin -lc actually breaks the build: elf2flt picks up the symbols for getopt/optarg via
<getopt.h> in binutils-X.Y/include, where optarg is declared without dllimport attribute.
Therefore it pulls in getopt() from libc/libcygwin, but since optarg is not prefixed with
_imp__, it is pulled from libiberty. But the object file in libiberty also contains getopt()
thus resulting in multiple definitions thereof.

While there, kill extraneous -ldl passed into configure - configure detects -ldl successfully.

Upstream: https://github.com/uclinux-dev/elf2flt/pull/6
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-22 22:17:49 -08:00
Alexey Neyman
4de4507a65 Merge pull request #375 from jasmin-j/add_tls_config
Added new gcc config option CC_GCC_CONFIG_TLS
2017-02-22 22:00:03 -08:00
Alexey Neyman
1468e996f7 Merge pull request #613 from stilor/removed-file-still-present
Kill a generated file
2017-02-21 23:50:32 -08:00