flag-o-matic.eclass: Revert "Strip LDFLAGS unsupported by the C..."
authorMichał Górny <mgorny@gentoo.org>
Fri, 11 Aug 2017 14:33:18 +0000 (16:33 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 11 Aug 2017 14:35:09 +0000 (16:35 +0200)
The current logic strips too much, causing build failures. Revert it
until we get it right.

Bug: https://bugs.gentoo.org/627474

eclass/flag-o-matic.eclass
eclass/tests/flag-o-matic.sh

index 4ef32c519f22745cd9467d34c802c6aff537db8e..b2f3742b3ecfc5804970eb0da633122d1778eedd 100644 (file)
@@ -535,9 +535,6 @@ strip-unsupported-flags() {
        export CXXFLAGS=$(test-flags-CXX ${CXXFLAGS})
        export FFLAGS=$(test-flags-F77 ${FFLAGS})
        export FCFLAGS=$(test-flags-FC ${FCFLAGS})
-       # note: this does not verify the linker flags but it is enough
-       # to strip invalid C flags which are much more likely, #621274
-       export LDFLAGS=$(test-flags-CC ${LDFLAGS})
 }
 
 # @FUNCTION: get-flag
index 24f2a4c4af4ef6fbf378aa7aa5e2fea0de7c1290..92c68b82c3c906077c5fd72789f65ca383c7ad78 100755 (executable)
@@ -55,7 +55,7 @@ done <<<"
 
 tbegin "strip-unsupported-flags"
 strip-unsupported-flags
-[[ ${CFLAGS} == "" ]] && [[ ${CXXFLAGS} == "-z=2" ]] && [[ ${LDFLAGS} == "" ]]
+[[ ${CFLAGS} == "" ]] && [[ ${CXXFLAGS} == "-z=2" ]]
 ftend
 
 for var in $(all-flag-vars) ; do