libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rm -f


From: Patrick Welche
Subject: rm -f
Date: Fri, 14 Dec 2007 16:19:55 +0000
User-agent: Mutt/1.5.14 (2007-03-22)

I am seeing trivial test failures just because

% rm -f
usage: rm [-f|-i] [-dPRrvW] file ...

e.g.,

> /stresstest.at:251: eval '$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o "$rel"s
ub2/liba.la "$rel"sub/a.lo' $linkargs
> stderr:
> usage: rm [-f|-i] [-dPRrvW] file ...
> stdout:
> libtool: link: rm -fr  sub2/.libs/liba.a sub2/.libs/liba.la
> libtool: link: generating symbol list for `liba.la'
> libtool: link: using reloadable object file for export list...
> libtool: link: creating reloadable object files...
> libtool: link: generating symbol list for `liba.la'
> libtool: link: creating a temporary reloadable object file: sub2/.libs/liba.la
-1.o
> libtool: link: /usr/bin/ld -r -o sub2/.libs/liba.la-1.o sub/.libs/a.o 
> libtool: link: rm -f 
> /stresstest.at:251: exit code was 1, expected 0
> 55. stresstest.at:31: 55. Link option thorough search test (stresstest.at:31):
 FAILED (stresstest.at:251)

There already is a safety check in libtool at

      # Don't error if the file doesn't exist and rm -f was used.

but then there are all the cases where $RM is used. Invent a shell
function which does rm -f if its argument isn't empty?

Cheers,

Patrick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]