diff options
author | Patrick Georgi <patrick.georgi@secunet.com> | 2012-09-26 15:26:05 +0200 |
---|---|---|
committer | Anton Kochkov <anton.kochkov@gmail.com> | 2012-09-28 13:43:31 +0200 |
commit | 82867d3ed0f42267038b3a34009c6dd5b5be696c (patch) | |
tree | 16452946de6b7b732ec0551cc45949d68a93a592 /payloads/libpayload/bin/lpgcc | |
parent | 08ed5a86978ba3934a0c25b2e6e8077112e8f1b2 (diff) | |
download | coreboot-82867d3ed0f42267038b3a34009c6dd5b5be696c.tar.xz |
libpayload: Don't leave temporary files behind
For some reason the rm -f didn't quite work on my system,
but sending gcc output to /dev/null does.
Change-Id: I7ece9aa9abe564bbc646ae53df1d3cd0c5aa84a2
Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com>
Reviewed-on: http://review.coreboot.org/1543
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-by: Anton Kochkov <anton.kochkov@gmail.com>
Diffstat (limited to 'payloads/libpayload/bin/lpgcc')
-rwxr-xr-x | payloads/libpayload/bin/lpgcc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/payloads/libpayload/bin/lpgcc b/payloads/libpayload/bin/lpgcc index 80c22666b7..8ee0dcfbb9 100755 --- a/payloads/libpayload/bin/lpgcc +++ b/payloads/libpayload/bin/lpgcc @@ -58,10 +58,8 @@ BASE=`dirname $0` _LDSCRIPT="-Wl,-T,$_LIBDIR/libpayload.ldscript" trygccoption() { - $DEFAULT_CC $1 -S -xc /dev/null -o .$$.tmp &> /dev/null - RET=$? - rm -f .$$.tmp - return $RET + $DEFAULT_CC $1 -S -xc /dev/null -o /dev/null &> /dev/null + return $? } DEBUGME=0 |