1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-29 23:43:17 +03:00

Use RTLD_NOW, not RTLD_LAZY, as binding mode for dlopen() on all platforms.

This restores the Linux behavior to what it was in PG 7.0 and 7.1, and
causes other platforms to agree.  (Other well-tested platforms like HPUX
were doing it this way already.)  Per pghackers discussion over the past
month or so.
This commit is contained in:
Tom Lane
2002-02-12 23:41:25 +00:00
parent baa0bb97b0
commit fa046b6a92
17 changed files with 266 additions and 79 deletions

View File

@@ -1,5 +1,5 @@
/*
* $Id: aix.h,v 1.10 2001/11/08 20:37:52 momjian Exp $
* $Id: aix.h,v 1.11 2002/02/12 23:39:46 tgl Exp $
*
* @(#)dlfcn.h 1.4 revision of 95/04/25 09:36:52
* This is an unpublished work copyright (c) 1992 HELIOS Software GmbH
@@ -57,7 +57,7 @@ int dlclose();
#include "utils/dynamic_loader.h"
#define pg_dlopen(f) dlopen((f), RTLD_LAZY | RTLD_GLOBAL)
#define pg_dlopen(f) dlopen((f), RTLD_NOW | RTLD_GLOBAL)
#define pg_dlsym dlsym
#define pg_dlclose dlclose
#define pg_dlerror dlerror