summaryrefslogtreecommitdiff
path: root/src/template
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2000-11-16 05:51:07 +0000
committerBruce Momjian <bruce@momjian.us>2000-11-16 05:51:07 +0000
commit312063c97be346c3ce01faff021e9bff0464fa5c (patch)
treea4b33aa5242b3e1172379308804f3b06a89857bc /src/template
parent580d2bc60f0e225e3fffc4da81039cf28e249749 (diff)
Make pgsql compile on FreeBSD-alpha.
Context diff this time. Remove -m486 compile args for FreeBSD-i386, compile -O2 on i386. Compile with only -O on alpha for codegen safety. Make the port use the TEST_AND_SET for alpha and i386 on FreeBSD. Fix a lot of bogus string formats for outputting pointers (cast to int and %u/%x replaced with no cast and %p), and 'Size'(size_t) are now cast to 'unsigned long' and output with %lu/ Remove an unused variable. Alfred Perlstein
Diffstat (limited to 'src/template')
-rw-r--r--src/template/freebsd8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/template/freebsd b/src/template/freebsd
index c3706a65176..9e92126332b 100644
--- a/src/template/freebsd
+++ b/src/template/freebsd
@@ -1 +1,7 @@
-CFLAGS='-O2 -m486 -pipe'
+CFLAGS='-pipe'
+
+case $host_cpu in
+ alpha*) CFLAGS="$CFLAGS -O";;
+ i386*) CFLAGS="$CFLAGS -O2";;
+esac
+