Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit41e6324

Browse files
committed
Using MODULES for building .so instead of MODULE_big.
This is fix of my previous commit1443ae0.PGXS supports two ways of building shared libraries: building an so for eachmodule specified in MODULES and building one big so named MODULE_big for allmodules specified in OBJS. Previously this extension used the latter, but alsospecified MODULES variable for no reason, which is pretty strange. Sinceextension contains just one module, it is sane to use the former. I have removedOBJS variable, but forgot to remove MODULE_big in my previous commit, whichbroke the build, since an empty so was assembled. This commit fixes the issue.Besides, PG_CONFIG var is now consulted for path to pg_config, which allows tobuild extension without pg_config in the PATH.
1 parent8158b1a commit41e6324

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
EXTENSION = zson
22
MODULES = zson
33
DATA = zson--1.1.sql zson--1.0--1.1.sql
4-
OBJS = zson.o
54
REGRESS = zson
65

7-
MODULE_big = zson
86
PG_CPPFLAGS = -g -O2
97
SHLIB_LINK =# -lz -llz4
108

11-
PGXS :=$(shell pg_config --pgxs)
9+
ifndefPG_CONFIG
10+
PG_CONFIG := pg_config
11+
endif
12+
PGXS :=$(shell$(PG_CONFIG) --pgxs)
1213
include$(PGXS)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp