how does LDFLAGS work?

From: michael lush <mjlush(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: how does LDFLAGS work?
Date: 2011-10-03 11:35:16
Message-ID: CACXX7McP2xJOhsQx-+r4=O_fpcXcyiZ_Xm6M=EgCdMTVo8g_Lg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

I'm trying to compile postgres 8.4.2 with perl and ssl support but
have no root access

./configure --with-openssl --with-perl --prefix=/home/michael/postgresql-8.4.2
dies with

.
.
.
checking for -lreadline... yes (-lreadline -ltermcap)
checking for inflate in -lz... yes
checking for CRYPTO_new_ex_data in -lcrypto... no
configure: error: library 'crypto' is required for OpenSSL

I did a local install of OpenSSL in /home/michael/openssl however, I
not clear how to point configure at the local library
In the INSTALL notes under "configure complains about a failed test program"

It seems to suggest I use something like ' configure ... LDFLAGS="-R
/usr/sfw/lib:/opt/sfw/lib:/usr/local/lib"

however
./configure --with-openssl --with-perl
--prefix=/home/michael/postgresql-8.4.2 LDFLAGS="-R
/home/michael/openssl/lib:/usr/lib"

only gets as far as
.
.
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.

the ld manpage seems to indicate that -R is looking for a filename
though I'm not sure what to put in the file.

--
Michael

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2011-10-03 14:37:54 Re: how does LDFLAGS work?
Previous Message Carlo Ascani 2011-10-03 08:32:12 Re: Connection refused (0x0000274D/10061)