pkgsrc/devel/libtool/patches/patch-build-aux_depcomp
jperkin 00697eb0c6 Update libtool packages to 2.4.6.
Changes since 2.4.2 are too numerous to mention, with over 4,700 lines
in the ChangeLog file.  However, this release does at least fix a large
number of build failures on SmartOS, and doesn't appear to cause any
obvious regressions in bulk builds performed by Joerg and myself.

Some pkgsrc cleanups while here, including merging the MirBSD patches
correctly.  It couldn't be made much clearer how to properly integrate
patches here to ensure they are not lost.  Next time you might not be so
fortunate!
2017-03-06 16:14:07 +00:00

17 lines
751 B
Text

$NetBSD: patch-build-aux_depcomp,v 1.1 2017/03/06 16:14:07 jperkin Exp $
Sometimes, the same source file is compiled for both PIC and non-PIC use.
Avoid using the same temporary file in this case as it will result in
very hard to debug race conditions for parallel builds otherwise.
--- build-aux/depcomp.orig 2016-12-31 10:44:32.000000000 +0000
+++ build-aux/depcomp
@@ -124,7 +124,7 @@ fi
# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
depfile=${depfile-`echo "$object" |
sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
-tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
+tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}.$$
rm -f "$tmpdepfile"