Hello Greg,

Everytime I recompile uClinux-dist for m68k using the uclinux-tools-20080626
toolchain, my /tmp directory is filled with a new bunch of flt-XXXXXX files,
which are not unlinked after usage.

Here is a fix

Philippe

--- m68k-uclinux-elf2flt/ld-elf2flt.original    2010-04-13 09:57:38.513180832 
+0200
+++ m68k-uclinux-elf2flt/ld-elf2flt     2010-04-13 10:10:14.150179220 +0200
@@ -92,6 +92,7 @@
                [ "$VERBOSE" = "y" ] && set -x
                ARG1="$ARG1 $FINAL_ONLY"
                NEWLDSCRIPT=`mktemp /tmp/flt-XXXXXX`
+               trap "rm -f $NEWLDSCRIPT" 0
                SEDOP=" -e s/^R_RODAT// -e /^W_RODAT/d"
                if [ "$MOVDAT" ]
                then

-- 
Philippe De Muyter  phdm at macqel dot be  Tel +32 27029044
Macq Electronique SA  rue de l'Aeronef 2  B-1140 Bruxelles  Fax +32 27029077
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to