summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut2022-09-02 15:56:14 +0000
committerPeter Eisentraut2022-09-02 15:56:14 +0000
commit1c3aa54502dd7d2ced0c4e51de40aa4d61bfc04c (patch)
tree00d069dfdc5372d678feb2d7902919c93aaff515 /src
parent376af686111e57929c626254eb403c0e810d8e22 (diff)
Fix PL/Perl build on Cygwin
This was broken by b4e936859dc441102eb0b6fb7a104f3948c90490. The reason why this fixes it are not entirely clear, but it seemed the best way to get it working again. Discussion: https://www.postgresql.org/message-id/flat/8c4fcb72-2574-ff7c-4c25-1f032d4a2a57%40enterprisedb.com
Diffstat (limited to 'src')
-rw-r--r--src/pl/plperl/GNUmakefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pl/plperl/GNUmakefile b/src/pl/plperl/GNUmakefile
index 1ebf3c9ba2b..51f8890d15d 100644
--- a/src/pl/plperl/GNUmakefile
+++ b/src/pl/plperl/GNUmakefile
@@ -55,6 +55,11 @@ endif # win32
SHLIB_LINK = $(perl_embed_ldflags)
+# see https://www.postgresql.org/message-id/flat/8c4fcb72-2574-ff7c-4c25-1f032d4a2a57%40enterprisedb.com
+ifeq ($(PORTNAME), cygwin)
+SHLIB_LINK += -Wl,--export-all-symbols
+endif
+
REGRESS_OPTS = --dbname=$(PL_TESTDB)
REGRESS = plperl_setup plperl plperl_lc plperl_trigger plperl_shared \
plperl_elog plperl_util plperl_init plperlu plperl_array \