On Sat, 21 Jan 2006, Ralf Wildenhues wrote:

HPUX cc apparently leaves a broken, but non-executable binary with this
sequence (which causes fail.at to fail):

| $ echo 'int not_main() { return 0;}' > a.c
| $ cc -c a.c
| $ cc -o a a.o; echo $?
| ld: Unsatisfied symbol "main" in file <no file>
| 1 errors.
| 1
| $ nm a | grep main
| [60]     |            0|       0|NOTYP|GLOB |0|   UNDEF|main
| [52]     |     67110912|      16|FUNC |GLOB |0|   .text|not_main

Should libtool remove the output file in case the link line failed?
I'm a little bit wary of this, it may still be useful for the user?

I think that if most linkers do not output a broken file, then libtool should remove (or rename) such files so that behavior is consistent. Libtool should try to assure consistent behavior.

Bob
======================================
Bob Friesenhahn
[EMAIL PROTECTED], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/


Reply via email to