From 0e6d20439e89c82fa99bbaefbe2a728efc77631c Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sat, 1 Jul 2017 18:14:44 +0200 Subject: flag-o-matic.eclass: Strip LDFLAGS unsupported by the C compiler, #621274 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. --- eclass/tests/flag-o-matic.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eclass/tests/flag-o-matic.sh') diff --git a/eclass/tests/flag-o-matic.sh b/eclass/tests/flag-o-matic.sh index 92c68b82c3c9..24f2a4c4af4e 100755 --- a/eclass/tests/flag-o-matic.sh +++ b/eclass/tests/flag-o-matic.sh @@ -55,7 +55,7 @@ done <<<" tbegin "strip-unsupported-flags" strip-unsupported-flags -[[ ${CFLAGS} == "" ]] && [[ ${CXXFLAGS} == "-z=2" ]] +[[ ${CFLAGS} == "" ]] && [[ ${CXXFLAGS} == "-z=2" ]] && [[ ${LDFLAGS} == "" ]] ftend for var in $(all-flag-vars) ; do -- cgit v1.2.3-65-gdbad