Re: FreeBSD 6.2 ./configure plays oddly when building 8.2.2 from tarball - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: FreeBSD 6.2 ./configure plays oddly when building 8.2.2 from tarball
Date
Msg-id 20070208191939.GX24069@alvh.no-ip.org
Whole thread Raw
In response to FreeBSD 6.2 ./configure plays oddly when building 8.2.2 from tarball  ("Andrew Hammond" <andrew.george.hammond@gmail.com>)
List pgsql-hackers
Andrew Hammond wrote:

> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
> 
> It was created by PostgreSQL configure 8.2.2, which was
> generated by GNU Autoconf 2.59.  Invocation command line was
> 
>  $ ./configure --prefix=/usr/local/pgsql822_sl126_amd64_FreeBSD62
> --with-includes=/usr/local/include --with-libs=/usr/local/lib
> --enable-thread-saftey --with-openssl --enable-debug CC=gcc CFLAGS=-O3
> -funroll-loops -m64

[...]

> configure:2209: checking for C compiler default output file name
> configure:2212: gcc -O3 -funroll-loops -m64   conftest.c /usr/local/lib >&5
> /usr/local/lib: file not recognized: File format not recognized

Strange.  I tried the same args on 8.2.3, and that config.log extract
shows this:

configure:2209: checking for C compiler default output file name
configure:2212: gcc -O3 -funroll-loops -m64   conftest.c  >&5
[works]

Note no misplaced libs there.  The configure args were

./configure --prefix=/tmp --with-includes=/usr/local/include --with-libs=/usr/local/lib --enable-thread-saftey
--with-openssl--enable-debug CC=gcc CFLAGS="-O3 -funroll-loops -m64"
 
(including the thread-saftey typo)

I noticed that config.log has unquoted CFLAGS -- I'd say that's a bug,
but maybe it's of no consequence.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


pgsql-hackers by date:

Previous
From: Jan Wieck
Date:
Subject: Re: Proposal: Commit timestamp
Next
From: Tom Lane
Date:
Subject: Re: FreeBSD 6.2 ./configure plays oddly when building 8.2.2 from tarball