From 0e22cb1232f4474f9b461661b621603312f37d3d Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 9 Oct 2003 03:20:34 +0000 Subject: This centralizes the optimization defaults into configure.in, rather than having CFLAGS= in the template files. It uses -O2 for gcc (generated by autoconf), and -O for non-gcc, unless the template overrides it. --- src/template/freebsd | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'src/template/freebsd') diff --git a/src/template/freebsd b/src/template/freebsd index 082afc077b2..651593232d3 100644 --- a/src/template/freebsd +++ b/src/template/freebsd @@ -1,17 +1,11 @@ -CFLAGS='-pipe' - case $host_cpu in - alpha*) CFLAGS="$CFLAGS -O" ;; + alpha*) CFLAGS="-O";; esac THREAD_SUPPORT=yes NEED_REENTRANT_FUNCS=yes THREAD_CPPFLAGS="-D_THREAD_SAFE" case $host_os in - freebsd2*|freebsd3*|freebsd4*) - THREAD_LIBS="-pthread" - ;; - *) - THREAD_LIBS="-lc_r" - ;; + freebsd2*|freebsd3*|freebsd4*) THREAD_LIBS="-pthread";; + *) THREAD_LIBS="-lc_r";; esac -- cgit v1.2.3