From 82867d3ed0f42267038b3a34009c6dd5b5be696c Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Wed, 26 Sep 2012 15:26:05 +0200 Subject: 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 Reviewed-on: http://review.coreboot.org/1543 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer Reviewed-by: Anton Kochkov --- payloads/libpayload/bin/lpgcc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'payloads/libpayload/bin') 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 -- cgit v1.2.3