about summary refs log tree commit diff
path: root/perl
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-12-14T00·49+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-12-14T00·49+0100
commit8bdff8c1003501bab0dbc63ed6c391ff2f2da4b5 (patch)
treed36f30676cb75b3146959f06e2565a12bf12633b /perl
parent14955c297de82e964ea5bf44f8aaf543d4cae33a (diff)
parentf665c5d9b368cba0ca153323a805844f179e8bee (diff)
Merge branch 'cygwin-master' of https://github.com/ternaris/nix
Diffstat (limited to 'perl')
-rw-r--r--perl/local.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl/local.mk b/perl/local.mk
index 8ff60e9ce3c7..73d8a7c9526b 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