Skip site navigation (1) Skip section navigation (2)

Dynamic linking on AIX

From: "Albe Laurenz" <all(at)adv(dot)magwien(dot)gv(dot)at>
To: <pgsql-patches(at)postgresql(dot)org>
Subject: Dynamic linking on AIX
Date: 2006-09-15 14:59:42
Message-ID: 52EF20B2E3209443BC37736D00C3C1380A626B44@EXADV1.host.magwien.gv.at (view raw or flat)
Thread:
Lists: pgsql-patches
This patch fixes linking on AIX.

Relevant threads on psql-hackers:
http://archives.postgresql.org/pgsql-hackers/2006-09/msg01020.php
http://archives.postgresql.org/pgsql-hackers/2006-09/msg01084.php
http://archives.postgresql.org/pgsql-hackers/2006-09/msg01109.php

Up to now, the default on AIX was to link statically.
This was not intended; it's just that AIX has different
ideas about shared libraries than Linux and nobody cared.

--enable-rpath was matched to the AIX equivalent.

I tested the patch on AIX 5.3 with gcc; it should also
work with IBM's cc. The patch is backward compatible until
AIX 4.3 at least, and I added a kludge to Makefile.shlib so
that it should also build something operational on AIX 3.2.5.

The change to
src/interfaces/ecpg/test/Makefile.regress
is not actually part of the patch, but without it building
fails if you configure --with-ldap --disable-shared

I tested building with --disable-shared and --enable-shared
(with --enable-rpath and --disable-rpath).

Yours,
Laurenz Albe

Attachment: aixlink.patch
Description: application/octet-stream (3.5 KB)

pgsql-patches by date

Next:From: Magnus HaganderDate: 2006-09-15 20:57:31
Subject: pg_strcasecmp in fe-connect.c
Previous:From: Tom LaneDate: 2006-09-15 14:56:58
Subject: Re: [HACKERS] plpgsql, return can contains any expression

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group