This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ada/56271] GCC build errors when building ada and using LDFLAGS


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' )


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]