Import of pkgsrc-2014Q1
This commit is contained in:
20
databases/postgresql93/files/GNUmakefile.libpq
Normal file
20
databases/postgresql93/files/GNUmakefile.libpq
Normal file
@@ -0,0 +1,20 @@
|
||||
# $NetBSD: GNUmakefile.libpq,v 1.1 2013/09/10 15:32:32 adam Exp $
|
||||
#
|
||||
# This GNUmakefile overrides the `all' target of $(libpq_srcdir)/Makefile
|
||||
# to be empty if INSTALLED_LIBPQ is defined. This handles the submake
|
||||
# targets sprinkled throughout the PostgreSQL Makefiles that execute
|
||||
#
|
||||
# @$(MAKE) -C $(libpq_builddir) all
|
||||
#
|
||||
# to ensure that the libpq libraries are built first. If INSTALLED_LIBPQ
|
||||
# is defined, then have the `all' target simple return success.
|
||||
|
||||
ifdef INSTALLED_LIBPQ
|
||||
all:
|
||||
@test -f libpq.a || touch libpq.a
|
||||
endif
|
||||
|
||||
%: force
|
||||
@$(MAKE) -f Makefile $@
|
||||
|
||||
force: ;
|
||||
17
databases/postgresql93/files/dynloader-ltdl.h
Normal file
17
databases/postgresql93/files/dynloader-ltdl.h
Normal file
@@ -0,0 +1,17 @@
|
||||
/* $NetBSD: dynloader-ltdl.h,v 1.1 2013/09/10 15:32:32 adam Exp $ */
|
||||
|
||||
/*
|
||||
* dynamic loader based on libltdl
|
||||
*/
|
||||
#ifndef PORT_PROTOS_H
|
||||
#define PORT_PROTOS_H
|
||||
|
||||
#include <ltdl.h>
|
||||
#include "utils/dynamic_loader.h"
|
||||
|
||||
#define pg_dlopen(a) ((void *)lt_dlopen(a))
|
||||
#define pg_dlsym(a,b) lt_dlsym((lt_dlhandle)(a), (b))
|
||||
#define pg_dlclose(a) lt_dlclose((lt_dlhandle)(a))
|
||||
#define pg_dlerror lt_dlerror
|
||||
|
||||
#endif /* PORT_PROTOS_H */
|
||||
Reference in New Issue
Block a user