summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* multilib.eclass: populate STRINGSSergei Trofimovich2020-06-141-0/+4
| | | | | | | | | | | | | | | | For both multilib and non-multilib profiles binutils provides tools with native CHOST prefix only. For example on amd64 there is only 'x86_64-pc-linux-gnu-strings' and 'strings'. autoconf usually uses AC_CHECK_TOOL(STRINGS, strings) autodetection to discover either of these. The change overrides STRINGS and friends to 'x86_64-pc-linux-gnu-strings' for multilib setup similar to other environment variables. Tested on media-libs/x264 and x11-libs/cairo packages. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* multilib.eclass: export PKG_CONFIG in multilib_toolchain_setupMike Gilbert2020-06-131-0/+2
| | | | | | | | | This ensures that autoconf will not try to use a crossdev wrapper for non-native ABIs. Instead, we always use the native pkg-config, and override its behavior via PKG_CONFIG_LIBDIR and PKG_CONFIG_SYSTEM_LIBRARY_PATH. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* multilib.eclass: export PKG_CONFIG_SYSTEM_LIBRARY_PATH in ↵Mike Gilbert2020-06-131-0/+2
| | | | | | | | | multilib_toolchain_setup This ensures pkg-config --libs will filter -L/usr/lib from its output for non-native ABIs. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* multilib.eclass: populate READELFSergei Trofimovich2020-05-251-0/+2
| | | | | | | | | | | | | | | | | For both multilib and non-multilib profiles binutils provides tools with native CHOST prefix only. For example on amd64 there is only 'x86_64-pc-linux-gnu-readelf' and 'readelf'. meson build system uses 'readelf' or $READELF binaries and relies on meson.eclass to populate READELF. The change overrides READELF and friends to 'x86_64-pc-linux-gnu-readelf' for multilib setup similar to other environment variables. Tested on net-libs/gssdp package. Closes: https://bugs.gentoo.org/725304 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* multilib.eclass: save/restore AR, NM, RANLIB, OBJDUMP, STRIP, bug #724558Sergei Trofimovich2020-05-241-0/+5
| | | | | | | | | | | | | | | | | | A follow-up to commit dd35b529194fdc ("populate AR, NM, RANLIB, OBJDUMP, STRIP, bug #724558") Before the change AR and friends were set for non-default ABI and were not restored to defaults for next native ABI. It should not be a problem for default case as both do match. For consistency with other variables now we restore possibly unset values for native ABI. Noticed by Arfrever Frehtes Taifersar Arahesis. Reported-by: Arfrever Frehtes Taifersar Arahesis Bug: https://bugs.gentoo.org/724558 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* multilib.eclass: consolidate save/restore listSergei Trofimovich2020-05-241-2/+16
| | | | | | | | | To avoid duplicating save/restore variable lists gathered the list into a separate helper local variables. This change is a no-op. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* multilib.eclass: don't backup/restore ASSergei Trofimovich2020-05-241-4/+2
| | | | | | | Not needed since Oct 27 2011, commit b0ab4faaee818c7bd5 ("drop AS export since get_abi_ASFLAGS no longer exists"), Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* multilib.eclass: populate AR, NM, RANLIB, OBJDUMP, STRIP, bug #724558Sergei Trofimovich2020-05-231-0/+5
| | | | | | | | | | | | | | | | For both multilib and non-multilib profiles binutils provides tools with native CHOST prefix only. For example on amd64 there is only 'x86_64-pc-linux-gnu-nm' and 'nm'. On abi_x86_32 tools are usually configured with --host=i686-pc-linux-gnu. Configure tries i686-pc-linux-gnu-nm, then falls back to 'nm'. The change overrides NM and friends to 'x86_64-pc-linux-gnu-nm' for multilib setup similar to other environment variables. Reported-by: Kent Fredric Closes: https://bugs.gentoo.org/724558 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* eclass/multilib.eclass: update copyright and fix typosSergei Trofimovich2020-03-281-1/+1
| | | | | Reported-by: Mike Gilbert Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* multilib.eclass: multilib_env(): set LIBDIR=lib for *-musl*Sergei Trofimovich2020-03-271-1/+12
| | | | | | | | | | | | | | In contrast to glibc musl profiles use 'lib' layour for 32-bit and 64-bit targets. multilib_env() did not take it into account and assumed glibc's lib64 layout. That breaks crossdev as it uses multilib_env to extract target definition. Native builds are unaffected by this change. Bug: https://bugs.gentoo.org/675954 Bug: https://gcc.gnu.org/PR90077 Bug: https://github.com/gentoo/musl/issues/245 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* multilib.eclass: Add riscv64 definitionsAndreas K. Hüttel2019-05-031-0/+14
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* multilib: mips64 is sometimes called mipsisa64Jason A. Donenfeld2018-09-281-0/+1
| | | | | | | This is the case for tuples like `mipsisa64r6-pc-linux-gnu`, which are required for making a working mips64r6 compiler. Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org>
* multilib: mips64 is sometimes called mipsisa64Jason A. Donenfeld2018-09-281-1/+1
| | | | | | | This is the case for tuples like `mipsisa64r6-pc-linux-gnu`, which are required for making a working mips64r6 compiler. Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org>
* multilib.eclass: fix cross-compiling multilib ebuildsTomasz Figa2017-05-161-1/+5
| | | | | | | | Current code assumes that CBUILD is always the same as CHOST, however it is desirable to allow cross compiling into multilib sysroots, where obviously the assumed condition does not hold anymore. To fix this, let's override CBUILD only if original CHOST and CBUILD are equal, i.e. we are not cross-compiling.
* Drop $Id$ per council decision in bug #611234.Robin H. Johnson2017-02-281-1/+0
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* multilib.eclass: get_exeext for mingw/cygwin exe suffix, #588330Michał Górny2016-09-031-0/+14
| | | | | | | | | Add a get_exeext function that can be used to obtain executable program suffix specific to the platform, in line with get_libname and get_modname. It is necessary to correctly reference built programs on non-standard platforms where executables use some suffix (like .exe). Original author: Gerhard Bräunlich
* multilib.eclass (get_libname): Cygwin allows versioning symlinksMichael Haubenwallner2016-05-091-1/+1
| | | | | | Although useless on Cygwin, some build systems or ebuilds still prefer to create the versioning symlinks. As symlinked import libs do not harm anything on Cygwin, just leave those build systems or ebuilds alone.
* multilib.eclass (get_libname): Cygwin uses (unversioned) import libs named dll.aMichael Haubenwallner2016-04-131-5/+7
|
* multilib.eclass: get_libdir is part of EAPI 6Michał Górny2015-11-161-9/+11
| | | | | Disable get_libdir in EAPIs other than {0..5} since it is now part of EAPI.
* proj/gentoo: Initial commitRobin H. Johnson2015-08-081-0/+451
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed