On NetBSD, had to add -Wl, -R/usr/local/postgres/lib to the src/Makefile.global LIB variable

From: Scott Williams <Scott(at)james(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Cc: Scott Williams <scott(at)james(dot)com>
Subject: On NetBSD, had to add -Wl, -R/usr/local/postgres/lib to the src/Makefile.global LIB variable
Date: 2001-02-16 07:51:57
Message-ID: E14TfgK-00010B-00@scotts.james.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


Priority: probably low.

Background:

uname -a:
NetBSD scotts 1.5 NetBSD 1.5 (GENERIC) #1: Sun Nov 19 21:42:11 MET 2000
fvdl(at)sushi:/work/trees/netbsd-1-5/sys/arch/i386/compile/GENERIC i386

Postgresql version: 7.0.3

To configure I did a `./configure --prefix=/usr/local/postgres'.
This is straight "out-of-the-box", so I didn't apply any of the
NetBSD pkgsrc patches.

My problem & fix:

I had to add -Wl,-R/usr/local/postgres/lib to the
src/Makefile.global LIB variable. Otherwise, doing a
'ldd /usr/local/postgres/bin/psql' after installation
reported that it couldn't find libpg (`-lpq.2 => Not Found'
or something like that).

Remarks:

There's almost certainly a better way, since src/Makefile.global is
automatically generated, but I'm still getting acclimated to NetBSD
and Postgres build.

- Scott Williams

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Chris Storah 2001-02-16 09:27:43 RE: create table bug with reserved words?
Previous Message Emily Carl 2001-02-15 20:29:15 Regresstion Tests do not find PGLIB directory