1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-03 15:22:11 +03:00

Add ccsym to tools to determine OS/compiler specific symbols

Change BSD44_derived to __FreeBSD__ in numutils.c (need to know what
NetBSD is referred to as...someone?)
This commit is contained in:
Marc G. Fournier
1997-04-13 17:09:45 +00:00
parent f2b98c4624
commit a69c5fc81a
2 changed files with 14 additions and 2 deletions

12
src/tools/ccsym Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
/bin/cat >tmp.c <<EOF
extern int foo;
EOF
for i in `cc -v -c tmp.c 2>&1`
do
case "$i" in
-D*) echo "$i" | /usr/bin/sed 's/^-D//';;
-A*) /bin/test "2.7.2.1" && echo "$i" | /usr/bin/sed 's/^-A\(.*\)(\(.*\))/\1=\2/';;
esac
done
/bin/rm -f try.c