Changeset 3e22494f in mainline
- Timestamp:
- 2011-06-24T02:15:07Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4d4988e
- Parents:
- 41e2118
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/binutils/toolchain.sh
r41e2118 r3e22494f 60 60 ( 61 61 echo '#! /bin/bash' 62 echo 'AS_LINK="`echo $*| grep '\'as-new\''`"'63 echo 'LD_LINK="`echo $*| grep '\'ld-new\''`"'62 echo 'AS_LINK="`echo \"$*\" | grep '\'as-new\''`"' 63 echo 'LD_LINK="`echo \"$*\" | grep '\'ld-new\''`"' 64 64 echo 'LINK="`echo -n "$AS_LINK""$LD_LINK"`"' 65 65 echo 'if [ -n "$LINK" ]; then' 66 echo ' LD_ARGS="`echo $*| \'66 echo ' LD_ARGS="`echo \"$*\" | \' 67 67 echo ' sed '\'s/-O[^ ]*//g\'' | \' 68 68 echo ' sed '\'s/-W[^ ]*//g\'' | \' … … 70 70 echo ' sed '\'s/-l[^ ]*//g\'' | \' 71 71 echo ' sed '\'s/ [ ]*/ /g\''`"' 72 echo ' ld "$LD_ARGS"'72 echo ' ld $LD_ARGS' 73 73 echo 'else' 74 74 CFLAGS="`echo "$3" | \ … … 78 78 sed 's/-g//g' | \ 79 79 sed 's/ [ ]*/ /g'`" 80 echo ' CONFTEST="`echo $*| grep '\' conftest \''`"'80 echo ' CONFTEST="`echo \"$*\" | grep '\' conftest \''`"' 81 81 echo ' if [ -n "$CONFTEST" ]; then' 82 82 echo ' LFLAGS="-Xlinker -z -Xlinker muldefs"' … … 84 84 echo " $2" '$@' "$CFLAGS -T $4" '$LFLAGS' "$5" 85 85 echo ' else' 86 echo ' echo' \'"$2"\' '"$@"' \'"$CFLAGS"\' 87 echo " $2" '$@' "$CFLAGS" 86 # Remove flags: 87 # -Wc++-compat 88 # Required just for gold linker. 89 echo ' GCC_ARGS="`echo \"$*\" | \' 90 echo ' sed '\'s/-Wc++-compat//g\'' | \' 91 echo ' sed '\'s/ [ ]*/ /g\''`"' 92 # Add flags: 93 # -Wno-type-limits 94 # HelenOS pid_t is unsigned 95 # while on most systems it is signed. 96 echo ' GCC_ARGS="$GCC_ARGS -Wno-type-limits"' 97 echo ' echo' \'"$2"\' '"$GCC_ARGS"' \'"$CFLAGS"\' 98 echo " $2" '$GCC_ARGS' "$CFLAGS" 88 99 echo ' fi' 89 100 echo 'fi'
Note:
See TracChangeset
for help on using the changeset viewer.