Re: BUG #2600: dblink compile with SSL missing libraries

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org, Chris Browne <cbbrowne(at)acm(dot)org>
Subject: Re: BUG #2600: dblink compile with SSL missing libraries
Date: 2006-08-31 18:45:49
Message-ID: 22538.1157049949@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers pgsql-patches

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Am Mittwoch, 30. August 2006 22:57 schrieb Chris Browne:
>> I also seem to recall, in past discussions about "library matters,"
>> that AIX is more sticky about requiring that libraries be named
>> expressly.

> ecpglib has

> SHLIB_LINK = -L../pgtypeslib -lpgtypes $(libpq) \
> $(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt -lm, $(LIBS))
> $(PTHREAD_LIBS)

> ifeq ($(PORTNAME), win32)
> # Link to shfolder.dll instead of shell32.dll
> SHLIB_LINK += -lshfolder
> endif

> Presumably the same would be necessary everywhere else libpq is used.

Surely it'd be better to put that into the $(libpq) macro instead.
I see that Makefile.global already has an AIX-specific hack to deal with
PTHREAD_LIBS that way, maybe we need to extend it?

Also, the list of potential library dependencies in libpq's own Makefile
is quite a bit longer than this list ... perhaps ecpg's list is too
short?

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Adailson 2006-09-01 19:20:00 BUG #2605: Log de ERRO
Previous Message Dave Page 2006-08-31 16:11:52 Re: BUG #2603: SQLDescribeCol return values

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2006-08-31 18:48:19 Re: [HACKERS] [PATCHES] log_statement output for protocol
Previous Message Josh Berkus 2006-08-31 18:41:41 Re: Thought provoking piece on NetBSD

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2006-08-31 18:48:19 Re: [HACKERS] [PATCHES] log_statement output for protocol
Previous Message Tom Lane 2006-08-31 18:36:28 Re: [PATCHES] Backend SSL configuration enhancement