ctfmerge: obey CTFMERGE_TERMINATE_NO_UNLINK as a tool too

This commit is contained in:
uwe 2024-05-04 18:22:59 +00:00
parent 3af74e3469
commit 0e6468a0fd
1 changed files with 1 additions and 1 deletions

View File

@ -682,7 +682,7 @@ terminate_cleanup(void)
if (outfile == NULL)
return;
#if !defined (__FreeBSD__) && !defined(__NetBSD__)
#if !defined (__FreeBSD__) && !(defined(__NetBSD__) || HAVE_NBTOOL_CONFIG_H)
if (dounlink) {
fprintf(stderr, "Removing %s\n", outfile);
unlink(outfile);