Avoid conflicts when creating /tmp files in Linux makedepend
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Nov 1999 09:17:59 +0000 (09:17 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Nov 1999 09:17:59 +0000 (09:17 +0000)
conf/MachineDef.Linux

index 6fedefb93d25d6d459193f3005f8096992d071f5..e465296f46574cf18ed1ae5d6dd1a0d1b9b336d3 100644 (file)
@@ -32,11 +32,12 @@ CLIBFOPT      =
 
 # Additional directories for dependencies
 
-DEPINC       = `rm -f /tmp/d.cxx; touch /tmp/d.cxx ; \
-                 g++ -v -c /tmp/d.cxx -o /dev/null 2>&1 | \
+DEPINC       = `rm -f /tmp/d_$$$$.cxx; touch /tmp/d_$$$$.cxx ; \
+                 g++ -v -c /tmp/d_$$$$.cxx -o /dev/null 2>&1 | \
                  awk 'BEGIN {i=0} {if(substr($$0,1,10)=="End of sea") i=0; \
                  if(i==1) printf "%s",$$sub(" ","-I")" "; \
-                 if(substr($$0,1,10) == "\#include <") i=1}' ; rm /tmp/d.cxx`
+                 if(substr($$0,1,10) == "\#include <") i=1}' ; \
+                 rm /tmp/d_$$$$.cxx`
                
 LD            = g++
 LDFLAGS       = $(OPT)