summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* flag-o-matic.eclass: whitelist -mstackrealign for 'strip-flags'Sergei Trofimovich2019-02-131-0/+7
| | | | | | | | | | Allow '-mstackrealign' in ebuilds like glibc to force stack realignment. That will allow running ancient (or foreign) binaries that don't maintain 16-byte stack alignment. See bug #677852 for example. Reported-by: Michael Huss Closes: https://bugs.gentoo.org/677852 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* flag-o-matic.eclass: allow -fuse-ld=* in filter flagsDavid C. Manuelda2018-08-241-0/+3
| | | | Closes: https://bugs.gentoo.org/662718
* flag-o-matic.eclass: treat "--param x" as a unit when testing flagsMike Gilbert2018-04-181-10/+23
| | | | | | | For clang and gcc, --param consumes the next argument. Testing --param and its value separately is nonsensical. Acked-by: Sergei Trofimovich <slyfox@gentoo.org>
* flag-o-matic.eclass: Allow -gz for compressed debug sections, bug 636986Andreas K. Hüttel2017-12-151-1/+1
| | | | Closes: https://bugs.gentoo.org/636986
* flag-o-matic.eclass: add ADA to flags for proper filteringStephen L Arnold2017-11-161-1/+1
| | | | * this is needed for some Ada packages using system gcc
* flag-o-matic.eclass: Strip LDFLAGS unsupported by the C compiler, #621274Michał Górny2017-08-251-0/+3
| | | | | | | | Include LDFLAGS in the variables stripped by strip-unsupported-flags. The code reuses the current functions for testing CC, and so only remove LDFLAGS that are rejected by the C compiler and not the linker. This solves the case of bug #621274 where LDFLAGS contained GCC-specific -flto flag.
* flag-o-matic.eclass: test-flag-PROG, ignore unused args in clangMichał Górny2017-08-251-1/+8
| | | | | | | | | | | | | | | | | | | By default, clang considers unused arguments as error when -Werror is used. Since flag tests are performed without linking, this causes all tests for linker flags to fail inadvertently and all those flags are stripped as a result. While the correctness of passing unused flags is doubtful, silently stripping them in a few random packages is certainly not the solution to the problem, and also makes the results differ between gcc and clang. To account for that, use clang's -Qunused-arguments option to silence unused argument warnings. To avoid wasting time on testing the compiler, just try passing -Qunused-arguments every time a flag check fails. If clang is not used, the additional call will fail just the same as the previous one (either because of the original flag or because of -Qunused-arguments), so the result will be the same.
* flag-o-matic.eclass: test-flag-PROG, refactor to reduce duplicationMichał Górny2017-08-251-3/+7
|
* flag-o-matic.eclass: Revert "Strip LDFLAGS unsupported by the C..."Michał Górny2017-08-111-3/+0
| | | | | | | The current logic strips too much, causing build failures. Revert it until we get it right. Bug: https://bugs.gentoo.org/627474
* flag-o-matic.eclass: Strip LDFLAGS unsupported by the C compiler, #621274Michał Górny2017-08-081-0/+3
| | | | | | | | Include LDFLAGS in the variables stripped by strip-unsupported-flags. The code reuses the current functions for testing CC, and so only remove LDFLAGS that are rejected by the C compiler and not the linker. This solves the case of bug #621274 where LDFLAGS contained GCC-specific -flto flag.
* flag-o-matic.eclass: Replace unnecessary evalsMichał Górny2017-03-081-6/+5
| | | | | | | | | Replace the evals used to export variables with plain export calls. Bash expands variable references for exported variable name anyway, rendering the eval completely unnecessary. Replace the single eval used for indirect variable reference with the ${!...} substitution which serves that exact purpose in bash.
* Drop $Id$ per council decision in bug #611234.Robin H. Johnson2017-02-281-1/+0
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* flag-o-matic.eclass: Add -fno-stack-check to ALLOWED_FLAGSJoshua Kinard2017-02-201-1/+1
| | | | | | | The -fno-stack-check flag is equivalent to -fstack-check=no, so support both in ALLOWED_FLAGS. Signed-off-by: Joshua Kinard <kumba@gentoo.org>
* flag-o-matic.eclass: Mark has_m64() as dead.Ulrich Müller2017-02-131-21/+2
| | | | The function is not used by any ebuild.
* flag-o-matic.eclass: whitelist -fstack-check #607710Mike Frysinger2017-02-091-1/+1
|
* flag-o-matic.eclass: handle gcc-6 -no-pie option #596584Mike Frysinger2016-11-111-2/+11
| | | | Reported-by: Laine Gholson <laine.gholson@gmail.com>
* flag-o-matic.eclass: Add -fplugin* (bug #519462).Ryan Hill2016-06-301-1/+1
|
* flag-o-matic.eclass: Add -mthumb/-marm (bug #586846).Ryan Hill2016-06-301-1/+1
|
* flag-o-matic.eclass: setup-allowed-flags: add -mno-hle #573454Mike Frysinger2016-02-011-1/+1
|
* flag-o-matic.eclass: all-flag-vars: rewrite to use bash arraysMike Frysinger2015-09-011-41/+44
| | | | This makes quoting much saner.
* flag-o-matic.eclass: all-flag-vars allow all -fsanitize* flags #553716Hanno Boeck2015-09-011-1/+1
| | | | | | This fixes handling of -fsanitize=foo flags, as well as supporting flags like -fsanitize-foo-bar. Since gcc seems to be using that namespace for all these settings, allow them all.
* proj/gentoo: Initial commitRobin H. Johnson2015-08-081-0/+673
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