about summary refs log tree commit diff
path: root/perl/local.mk
diff options
context:
space:
mode:
authorMarko Durkovic <marko@miding.de>2014-12-09T11·25+0100
committerMarko Durkovic <marko@miding.de>2014-12-09T12·00+0100
commitf665c5d9b368cba0ca153323a805844f179e8bee (patch)
tree985959bd8dd0d8e08561c91160c8a1b0973dd46e /perl/local.mk
parent4872677ffafce60bf863583804bb5700601ad7a4 (diff)
Link against perl.dll on Cygwin
Diffstat (limited to 'perl/local.mk')
-rw-r--r--perl/local.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl/local.mk b/perl/local.mk
index 8ff60e9ce3..73d8a7c952 100644
--- a/perl/local.mk
+++ b/perl/local.mk
@@ -29,6 +29,12 @@ ifeq ($(perlbindings), yes)
     -I$(shell $(perl) -e 'use Config; print $$Config{archlibexp};')/CORE \
     -D_FILE_OFFSET_BITS=64 -Wno-unused-variable -Wno-literal-suffix -Wno-reserved-user-defined-literal
 
+  ifeq (CYGWIN,$(findstring CYGWIN,$(OS)))
+    archlib = $(shell perl -E 'use Config; print $$Config{archlib};')
+    libperl = $(shell perl -E 'use Config; print $$Config{libperl};')
+    Store_LDFLAGS = $(shell find ${archlib} -name ${libperl})
+  endif
+
   Store_ALLOW_UNDEFINED = 1
 
   Store_FORCE_INSTALL = 1