Changeset 723560f in mainline
- Timestamp:
- 2011-06-24T23:07:22Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3f4c897d
- Parents:
- d185132
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/binutils/toolchain.sh
rd185132 r723560f 64 64 echo 'LINK="`echo -n "$AS_LINK""$LD_LINK"`"' 65 65 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\'' | \' 71 71 echo ' sed '\'s/ [ ]*/ /g\''`"' 72 72 echo ' ld $LD_ARGS' 73 73 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' | \ 79 79 sed 's/ [ ]*/ /g'`" 80 80 echo ' CONFTEST="`echo \"$*\" | grep '\' conftest \''`"' … … 87 87 # -Wc++-compat 88 88 # 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\'' | \' 91 91 echo ' sed '\'s/ [ ]*/ /g\''`"' 92 92 # Add flags: 93 93 # -Wno-type-limits 94 94 # 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"' 97 100 echo ' echo' \'"$2"\' '"$GCC_ARGS"' \'"$CFLAGS"\' 98 101 echo " $2" '$GCC_ARGS' "$CFLAGS"
Note:
See TracChangeset
for help on using the changeset viewer.