This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/56271] GCC build errors when building ada and using LDFLAGS
- From: "karlson2k at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 10 Feb 2013 11:55:19 +0000
- Subject: [Bug ada/56271] GCC build errors when building ada and using LDFLAGS
- Auto-submitted: auto-generated
- References: <bug-56271-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56271
--- Comment #1 from Evgeny Grin <karlson2k at gmail dot com> 2013-02-10 11:55:19 UTC ---
Created attachment 29409
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29409
Patch for ada build
Correctly filter out flags using sed:
COMMON_FLAGS_TO_PASS = $(shell echo '$(FLAGS_TO_PASS)' | \
$(SED) -e 's|\([=" ]\)-pedantic\([ "]\)|\1\2|g' \
-e 's|\([=" ]\)-W[^ "][^,][^ "]*|\1|g' \
-e 's|\([=" ]\)-W\([ "]\)|\1\2|g' \
-e 's/= */=/g' -e 's/ *" *" */" "/g' )