mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-11 10:33:24 +02:00
tools.patch patches tools/find_static (use indices to increase performance) and tools/ccsym (no hardcoded paths).
14 lines
279 B
Bash
Executable File
14 lines
279 B
Bash
Executable File
#!/bin/sh
|
|
trap "rm -f /tmp/$$.*" 0 1 2 3 15
|
|
cd /tmp
|
|
cat >$$.c <<EOF
|
|
extern int foo;
|
|
EOF
|
|
for i in `cc -v -c $$.c 2>&1`
|
|
do
|
|
case "$i" in
|
|
-D*) echo "$i" | sed 's/^-D//';;
|
|
-A*) test "2.7.2.1" && echo "$i" | sed 's/^-A\(.*\)(\(.*\))/\1=\2/';;
|
|
esac
|
|
done
|