aboutsummaryrefslogtreecommitdiff
path: root/scripts/build/companion_libs/220-ncurses.sh
Commit message (Collapse)AuthorAgeFilesLines
* Use -std=c17 for companion libs, which won't build with C23 standard, ↵Michał Zagórski2025-06-131-0/+2
| | | | | | default for gcc15 Signed-off-by: Michał Zagórski <zagura6+github@gmail.com>
* ncurses: Pass --disable-widec to configureChris Packham2025-02-241-0/+2
| | | | | | | | | The default for wide char support has changed in ncurses-6.5. This causes build failures for gdb. Pass --disable-widec to prevent the build errors. Fixes #2292, #2294 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* Rename JOBSFLAGS -> CT_JOBSFLAGSAlexey Neyman2019-04-041-1/+1
| | | | | | ... so that it is saved/restored when restarting the build. Signed-off-by: Alexey Neyman <stilor@att.net>
* Move GDB build into a common backend functionAlexey Neyman2019-03-091-1/+1
| | | | | | | ... needed to create a common runtime test for an incompatible change in glibc API. Signed-off-by: Alexey Neyman <stilor@att.net>
* Avoid adding arch/cpu/tune flags for target to GCC buildAlexey Neyman2018-06-051-1/+1
| | | | | | ... as it may need to override them for building runtime-selectable code. Signed-off-by: Alexey Neyman <stilor@att.net>
* Ncurses fixes for 6.1Alexey Neyman2018-01-291-2/+7
| | | | | | | | | | | - Update to 20180129 - Throw in --disable-db-install if database is disabled; otherwise 'make install' tries to run tic which is not built. - Select appropriate strip utility for the host; otherwise non-x86 architectures fail to install (unless --disable-stripping is also added) Signed-off-by: Alexey Neyman <stilor@att.net>
* Add -D__GLIBC__ to target CFLAGSAlexey Neyman2017-09-301-0/+1
| | | | | | | | ... when using musl to compile strace. Also, honor CT_TARGET_CFLAGS in scripts compiling target libs/binaries. Signed-off-by: Alexey Neyman <stilor@att.net>
* Fix the references to old config variablesAlexey Neyman2017-07-081-7/+3
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Always build ncurses-for-buildAlexey Neyman2017-04-011-25/+5
| | | | | | | | If the build machine lacks tic, we need to build it in the first pass even if host==build: ncurses Makefiles are not smart enough to build 'tic' first and use the just-built tic to compile fallback terminfo. Signed-off-by: Alexey Neyman <stilor@att.net>
* Add --disable-database and --with-fallbacks separatelyAlexey Neyman2017-02-171-3/+12
| | | | | | The dependency between them has been removed in Kconfig. Signed-off-by: Alexey Neyman <stilor@att.net>
* Allow some tunables for ncursesAlexey Neyman2017-02-051-1/+21
| | | | | | | | | - Allow user to specify configure arguments to pass through to host/target ncurses. - Checkbox for --disable-database - String option for --with-fallbacks Signed-off-by: Alexey Neyman <stilor@att.net>
* Run all configure scripts using ${CONFIG_SHELL}Alexey Neyman2017-01-251-0/+1
| | | | | | ... as its help message says in menuconfig. Signed-off-by: Alexey Neyman <stilor@att.net>
* Make companion libs static.Alexey Neyman2016-12-111-1/+9
| | | | | | | | | | | | | | | | | | | | | | | This follows the trend set by 1*.sh scripts that configure ISL, GMP, MPFR, CLooG, etc. Building with shared libraries presents all kinds of problems: - The shared libraries need to be installed into ${CT_PREFIX_DIR}. - The binaries linked against companion libs need to have proper RPATH, or they're looking for shared libs in .build/${CT_PREFIX}/buildtools/lib. - All libraries must agree as to whether they're built shared, static, or both. Otherwise, gettext tries to link in static libncurses.a into a shared library and fails (since libncurses was compiled without the -fPIC switch and hence contains relocations that cannot be handled in a shared library). So this fixes the current mess. If we decide to re-enable building the companion libs shared, we should probably make this dependent on a separate suboption of CT_STATIC_TOOLCHAIN. Add a config loosely based on one reported in the issue 274. Signed-off-by: Alexey Neyman <stilor@att.net>
* Merge pull request #443 from KirillSmirnov/gdb-nativeAlexey Neyman2016-12-051-1/+11
|\ | | | | debug/gdb: properly link with expat
| * complibs: let mingw-gcc find target companion libsKirill K. Smirnov2016-09-101-1/+11
| | | | | | | | | | | | | | | | mingw-gcc searches for include and libs in <sysroot>/mingw directory while non-mingw-gcc uses <sysroot>/usr. This patch sets an appropriate prefix for target companion libs. Signed-off-by: Kirill K. Smirnov <kirill.k.smirnov@gmail.com>
* | Partially revert 6f8e89cb5ca061e899bf3feaaf3fecf30d366c3e.Alexey Neyman2016-11-201-2/+2
|/ | | | | | | | | | | | | | | | | | 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 pull request #268 from bhundven/consistent_usage_of_found_appsBryan Hundven2015-11-171-2/+2
|\ | | | | consistency: Use exported variables of required tools
| * consistency: Use exported variables of required toolsBryan Hundven2015-11-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We check for apps: * make * sed * grep * awk * libtool/libtoolize * install * patch * and more ...during configure. Our scripts should be consistent about using the variables that define where the found tool was found. Of course, we do hard-link these tools in buildtools, but that should be a backup for the components we are building. Our scripts should always use the tools we find. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* | ncurses: bump to ncurses-6.0Bryan Hundven2015-11-161-0/+4
|/ | | | | | | | | This commit removes ncurses-5.9 and adds 6.0. I also provide the stable patch updates in patches/ncurses/6.0. I have also added an experimental toggle for enabling the new ABI support. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* Pass CFLAGS/LDFLAGS to backends.Alexey Neyman2015-11-131-0/+6
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Enable building expat/ncurses for host.Alexey Neyman2015-11-131-0/+37
| | | | | Then re-enable cross-gdb for nios2-spico-elf sample, previously disabled.
* Change ncurses to a companion library.Alexey Neyman2015-11-131-0/+109
Currently, builds for build and target (matching the current implementation). Need to add building for host for canadian crosses. TIC_PATH is removed - configure in ncurses searches $PATH, so it finds 'tic' in buildtools anyway. Arguably unneeded code for MacOS also removed, with a FIXME comment for validation by someone using MacOS. Signed-off-by: Alexey Neyman <stilor@att.net>