Changeset 723560f in mainline


Ignore:
Timestamp:
2011-06-24T23:07:22Z (13 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3f4c897d
Parents:
d185132
Message:

Minor improvements in false toolchain.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/binutils/toolchain.sh

    rd185132 r723560f  
    6464                echo 'LINK="`echo -n "$AS_LINK""$LD_LINK"`"'
    6565                echo 'if [ -n "$LINK" ]; then'
    66                 echo '  LD_ARGS="`echo \"$*\" | \'
    67                 echo '          sed '\'s/-O[^ ]*//g\'' | \'
    68                 echo '          sed '\'s/-W[^ ]*//g\'' | \'
    69                 echo '          sed '\'s/-g//g\'' | \'
    70                 echo '          sed '\'s/-l[^ ]*//g\'' | \'
     66                echo '  LD_ARGS="`echo \" $*\" | \'
     67                echo '          sed '\'s/ -O[^ ]*//g\'' | \'
     68                echo '          sed '\'s/ -W[^ ]*//g\'' | \'
     69                echo '          sed '\'s/ -g//g\'' | \'
     70                echo '          sed '\'s/ -l[^ ]*//g\'' | \'
    7171                echo '          sed '\'s/ [ ]*/ /g\''`"'
    7272                echo '  ld $LD_ARGS'
    7373                echo 'else'
    74                 CFLAGS="`echo "$3" | \
    75                         sed 's/-O[^ ]*//g' | \
    76                         sed 's/-W[^ ]*//g' | \
    77                         sed 's/-pipe//g' | \
    78                         sed 's/-g//g' | \
     74                CFLAGS="`echo " $3" | \
     75                        sed 's/ -O[^ ]*//g' | \
     76                        sed 's/ -W[^ ]*//g' | \
     77                        sed 's/ -pipe//g' | \
     78                        sed 's/ -g//g' | \
    7979                        sed 's/ [ ]*/ /g'`"
    8080                echo '  CONFTEST="`echo \"$*\" | grep '\' conftest \''`"'
     
    8787                                        # -Wc++-compat
    8888                                        #               Required just for gold linker.
    89                 echo '          GCC_ARGS="`echo \"$*\" | \'
    90                 echo '                  sed '\'s/-Wc++-compat//g\'' | \'
     89                echo '          GCC_ARGS="`echo \" $*\" | \'
     90                echo '                  sed '\'s/ -Wc++-compat//g\'' | \'
    9191                echo '                  sed '\'s/ [ ]*/ /g\''`"'
    9292                                        # Add flags:
    9393                                        # -Wno-type-limits
    9494                                        #               HelenOS pid_t is unsigned
    95                                         #               while on most systems it is signed.
    96                 echo '          GCC_ARGS="$GCC_ARGS -Wno-type-limits"'
     95                                        #               while on most systems it is signed.
     96                                        # -Wno-shadow
     97                                        #               Silents the warning caused by
     98                                        #               harmless bug in ld/ldlang.h and ld/ldlex.c.
     99                echo '          GCC_ARGS="$GCC_ARGS -Wno-type-limits -Wno-shadow"'
    97100                echo '          echo' \'"$2"\' '"$GCC_ARGS"' \'"$CFLAGS"\'
    98101                echo "          $2" '$GCC_ARGS' "$CFLAGS"
Note: See TracChangeset for help on using the changeset viewer.