We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1337751 commit a638f66Copy full SHA for a638f66
src/tools/ccsym
@@ -1,12 +1,12 @@
1
#!/bin/sh
2
-/bin/cat >tmp.c <<EOF
+trap "/bin/rm -f /tmp/$$.*" 0 1 2 3 15
3
+/bin/cat >$$.c <<EOF
4
extern int foo;
5
EOF
-for i in `cc -v -c tmp.c 2>&1`
6
+for i in `cc -v -c $$.c 2>&1`
7
do
8
case "$i" in
9
-D*) echo "$i" | /usr/bin/sed 's/^-D//';;
10
-A*) /bin/test "2.7.2.1" && echo "$i" | /usr/bin/sed 's/^-A\(.*\)(\(.*\))/\1=\2/';;
11
esac
12
done
-/bin/rm -f tmp.*
0 commit comments