aboutsummaryrefslogtreecommitdiff
path: root/scripts/build/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* | libc/mingw: quote variable in comparisonTamir Duberstein2017-04-061-1/+1
|/ | | | | | Building with CT_MINGW_TOOLS unset before this change produces: /usr/local/ct-ng/lib/crosstool-ng-1.23.0-rc2/scripts/build/libc/mingw.sh: line 212: [: =: unary operator expected
* Pass HOSTCC to uclibc's makeAlexey Neyman2017-04-021-0/+1
| | | | | | Else it looks for 'gcc'. Signed-off-by: Alexey Neyman <stilor@att.net>
* MinGW-W64 fixesAlexey Neyman2017-03-302-52/+99
| | | | | | | | | | | | | | | | | | | | | | | - libpthread requires iteration over multilibs, unlike the core, it does not detect and build multilibs by itself. - Disable parallel builds for mingw-w64 components; until mingw-w64 core builds clean, I am not trusting it. - Make the list of tools to build configurable - Turn on multilib in x86_64 sample. - Make warnings about tuple less redundant. As in, "one WARN is enough, no need to shout it three times". - Messages about various steps/substeps are more aligned with the rest of the components. - Use 'make' instead of ${make} to invoke the companion make just built, if applicable. Signed-off-by: Alexey Neyman <stilor@att.net>
* Fix up ld.so symlinks for muslAlexey Neyman2017-03-122-48/+4
| | | | | | | | Convert absolute targets to relative so that they are valid on the host, too. The procedure is very similar to uclibc, so it is moved into a common function. Signed-off-by: Alexey Neyman <stilor@att.net>
* Move tools alias creation to a common functionAlexey Neyman2017-03-122-0/+4
| | | | | | | | ... and in addition to final toolchain aliasing, use it when configuring multilibs for glibc/musl. Note that uClibc does not need it, it is explicitly selecting the tools using CROSS_PREFIX. Signed-off-by: Alexey Neyman <stilor@att.net>
* Merge pull request #635 from stilor/macos-skip-localesAlexey Neyman2017-03-071-1/+1
|\ | | | | Skip locales on macos
| * Skip building locales on macos, tooAlexey Neyman2017-03-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | --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>
* | Merge pull request #627 from dankm/freebsdAlexey Neyman2017-03-071-1/+13
|\ \ | |/ |/| FreeBSD build support
| * glibc: hide native c++ executable from buildDan McGregor2017-03-011-0/+4
| | | | | | | | | | | | | | | | | | 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>
| * Bring in FreeBSD supportDan McGregor2017-03-011-1/+9
| | | | | | | | | | | | Check for FreeBSD specific issues, it is mostly the same as Darwin. Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
* | Do not pretend we're downloading anythingAlexey Neyman2017-03-031-3/+1
|/ | | | | | ... when we're actually don't. Signed-off-by: Alexey Neyman <stilor@att.net>
* Merge pull request #625 from stilor/skip-localedefAlexey Neyman2017-02-281-0/+9
|\ | | | | Skip localedef
| * Skip locale build on CygwinAlexey Neyman2017-02-281-0/+9
| | | | | | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* | Avoid -T, it is not available on macosAlexey Neyman2017-02-281-3/+1
|/ | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Revert "Determine whether -E/-r option selects extended regexp"Alexey Neyman2017-02-261-3/+3
| | | | This reverts commit 7bcf18bfab84374d3305c7a088f95ac1219ddf93.
* Determine whether -E/-r option selects extended regexpAlexey Neyman2017-02-131-3/+3
| | | | | | | | | | | | | | ... and then use the right option. See the note in scripts/functions on where we should use ${foo} and where just 'foo'; this boils down to whether we can expect the build tools override to be in effect (e.g. in the actual build scripts) or not (i.e. outside of scripts/build). While running in scripts/functions, or in scripts/crosstool-NG.sh the build tools override directory (.build/tools/bin) may have not been set up (yet, or at all). Also, modify the installed scripts (populate, xldd) accordingly. Signed-off-by: Alexey Neyman <stilor@att.net>
* External addons supported by glibc even nowAlexey Neyman2017-02-091-27/+24
| | | | | | ... though none are provided by default. Signed-off-by: Alexey Neyman <stilor@att.net>
* Revert "glibc: Remove support for downloading and extracting add-ons"Alexey Neyman2017-02-091-0/+67
| | | | This reverts commit 39273e0843cc5f7f91d50651b299a0472f59f472.
* Use 'make olddefconfig' in uClibc/uClibc-ng configurationAlexey Neyman2017-02-041-1/+1
| | | | | | | | | | | instead of 'make oldconfig' and responding 'y'. This avoids 'Broken pipe' errors in the log, as well as selects default setting for all options not explicitly set. This requires a small fix in the old uClibc. Won't have to maintain that fix for long though :) Signed-off-by: Alexey Neyman <stilor@att.net>
* Fix location where libc manual is builtAlexey Neyman2017-01-301-2/+2
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Create <sgidefs.h> if MUSL doesn't create oneAlexey Neyman2017-01-261-0/+3
| | | | | | Document the status quo and work around for mips-musl. Signed-off-by: Alexey Neyman <stilor@att.net>
* Run all configure scripts using ${CONFIG_SHELL}Alexey Neyman2017-01-255-0/+8
| | | | | | ... as its help message says in menuconfig. Signed-off-by: Alexey Neyman <stilor@att.net>
* Merge pull request #552 from stilor/uclibc-ng-for-buildrootAlexey Neyman2017-01-231-0/+7
|\ | | | | Restore uClibc-ng usability in buildroot
| * Add selection for RPCAlexey Neyman2017-01-231-0/+7
| | | | | | | | | | | | | | So that uClibc config can be matched to Buildroot's expectations via the menu, without the need for a saved config. Signed-off-by: Alexey Neyman <stilor@att.net>
* | mingw: compile the mingw-w64 companion tools as wellLi-Hang Lin2017-01-221-0/+30
|/ | | | | | | There are some useful tools such as widl, gendef, genidl ... etc. provided by mingw-w64 and do not waste the developers' works. Signed-off-by: Li-Hang Lin <lihang.lin@gmail.com>
* Use ${CT_CC} instead of gcc ...Alexey Neyman2017-01-133-9/+9
| | | | | | ... when refering to target's compiler. Signed-off-by: Alexey Neyman <stilor@att.net>
* Merge pull request #526 from stilor/double-includeAlexey Neyman2017-01-131-7/+1
|\ | | | | Avoid creating include/include
| * AVR32 support has been retired.Alexey Neyman2017-01-121-4/+0
| | | | | | | | | | | | Scripts no longer download avr-headers. Signed-off-by: Alexey Neyman <stilor@att.net>
| * install_root has no effect on newlib install.Alexey Neyman2017-01-121-1/+1
| | | | | | | | | | | | | | And never had, at least since newlib 1.17 (first version added to crosstool-ng). Apparently, copy-pasted from glibc.sh. Signed-off-by: Alexey Neyman <stilor@att.net>
| * Remove 2nd copy of the option.Alexey Neyman2017-01-121-2/+0
| | | | | | | | | | | | Added above, as part of the list. Signed-off-by: Alexey Neyman <stilor@att.net>
* | Unify fetching Linaro components.Alexey Neyman2017-01-122-20/+22
|/ | | | | | Add CT_GetLinaro, use it from gcc/binutils/gdb/glibc/newlib. Signed-off-by: Alexey Neyman <stilor@att.net>
* Merge pull request #519 from InfernoEmbedded/newlib-enhancementsAlexey Neyman2017-01-101-26/+46
|\ | | | | Newlib enhancements
| * Support building Newlib with Link Time OptimisationAlastair D'Silva2017-01-101-10/+13
| | | | | | | | Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
| * Add more newlib optionsAlastair D'Silva2017-01-101-16/+33
| |
* | Darwin needs -liconv when building glibc.Alexey Neyman2017-01-101-7/+2
| | | | | | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* | Avoid trampling user's LDFLAGS_FOR_HOST...Alexey Neyman2017-01-101-7/+11
|/ | | | | | | | | ... by passing BUILD_LDFLAGS twice (the 2nd argument overrides the first). Also, no need to pass -I/-L for BUILD_CFLAGS/LDFLAGS, they are already included by crosstool-NG.sh (but keep for BUILD_CPPFLAGS, as we set it up here). Remove -Wl,-Bstatic/-Wl,-Bdynamic (we only build static complibs). Signed-off-by: Alexey Neyman <stilor@att.net>
* Fix use of custom location if it is a directory.Alexey Neyman2016-12-022-2/+2
| | | | | | | | | In that case, CT_GetCustom just creates a symlink to the original. In that case, 'cp -a <path> .' gives an error and 'cp -a <path> <newdir>' creates <newdir> as a symlink (which will then run the build inside the shared directory, .build/src/<package>). Signed-off-by: Alexey Neyman <stilor@att.net>
* Partially revert 6f8e89cb5ca061e899bf3feaaf3fecf30d366c3e.Alexey Neyman2016-11-206-41/+41
| | | | | | | | | | | | | | | | | | The referenced commit replaced 'make' with '${make}' everywhere. This is wrong for at least the utilities that we may build as companion tools (make, libtool): this will always invoke the version detected by configure by supplying the absolute path. In other words, the wrappers in .build/tools/bin are not fallbacks - they are either temporary (in case a respective companion tool is built) or permanent redirectors. This is the reason why the PATH= has .build/*/buildtools/bin at higher precedence than .build/tools/bin; the latter has the versions detected by configure and the former has the versions built as companion tools. Revert the rest of the gang (grep/sed/...) for consistency. After all, we may decide to supply some of them as well (awk, for instance). Signed-off-by: Alexey Neyman <stilor@att.net>
* Merge remote-tracking branch 'upstream/master'Dmitry Pankratov2016-11-112-1/+7
|\
| * Merge branch 'master' into janitorialBryan Hundven2016-10-241-0/+5
| |\
| | * Fix m68k with uClibc-ng >= 1.0.15.Alexey Neyman2016-10-041-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1.0.15 only kept a single LINUXTHREADS option, and renamed it, making it no longer option-compatible with uClibc. The option for "1.0.14 or later" version of uClibc-ng is not currently used; rename it to "1.0.15 or later" and use it to handle newer uClibc-ng's linuxthreads. m68k happens to be the only sample using linuxthreads. Signed-off-by: Alexey Neyman <stilor@att.net>
| * | build/glibc: Improve confusing commentKirill K. Smirnov2016-09-151-1/+2
| |/ | | | | | | | | | | | | | | Up until cset 4e2227e8a5537a8553c503e55d2cb2190f2a0d2f there was an 'if' statement with a comment. The abovementioned changeset removed the conditional statement but the comment survived. Signed-off-by: Kirill K. Smirnov <kirill.k.smirnov@gmail.com>
* | Merge branch 'master' of https://github.com/crosstool-ng/crosstool-ngDmitry Pankratov2016-10-017-550/+435
|\|
| * uClibc: propagate SHARED_LIBS option.Kirill K. Smirnov2016-08-301-0/+6
| | | | | | | | | | | | | | This patch synchronizes crosstool CT_SHARED_LIBS and uclibc HAVE_SHARED options. Signed-off-by: Kirill K. Smirnov <kirill.k.smirnov@gmail.com>
| * uClibc: install native utilsKirill K. Smirnov2016-08-301-1/+1
| | | | | | | | | | | | | | | | This change adds native ldd and ldconfig utils to sysroot. For glibc just 'make install' installs everything including utils. For uclibc there exists a separate goal 'install_utils'. Make it. Signed-off-by: Kirill K. Smirnov <kirill.k.smirnov@gmail.com>
| * musl: Add multilib support.Alexey Neyman2016-08-232-36/+59
| | | | | | | | Signed-off-by: Alexey Neyman <stilor@att.net>
| * uClibc: move ldso check to post_cc.Alexey Neyman2016-08-231-43/+54
| | | | | | | | | | | | | | | | It turns out that core GCC on binfmt architectures (m68k, for example) cannot produce the final executable (looks for ld.real in the wrong place). Need to wait for the final gcc to become available. Signed-off-by: Alexey Neyman <stilor@att.net>
| * Support multilib in sh/uClibc.Alexey Neyman2016-08-232-188/+59
| | | | | | | | Signed-off-by: Alexey Neyman <stilor@att.net>
| * Treat multiroots differently.Alexey Neyman2016-08-232-17/+83
| | | | | | | | | | | | | | | | | | | | 'ld' does not search for dependency libraries in multi_os_directory, so if there's both multi_os_directory and multi_root, and there is only one configuration in each multi_root, forgo the multi_os_directory suffix. Needed for sh4-multilib-linux-uclibc. Signed-off-by: Alexey Neyman <stilor@att.net>
| * First stab at multilib/uClibc.Alexey Neyman2016-08-231-14/+130
| | | | | | | | | | | | | | | | | | Create a separate 'libc_backend_once', install headers into a subdirectory (different sets of headers are installed for 32- and 64-bit architectures), and create a symlink for the dynamic linker location expected by GCC. Signed-off-by: Alexey Neyman <stilor@att.net>