about summary refs log tree commit diff
path: root/perl/local.mk
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-03-31T13·31+0200
committerEelco Dolstra <edolstra@gmail.com>2017-03-31T13·31+0200
commitd0877003475ecb3ea18a256239a9948fe0f28035 (patch)
treef4695beb94c11bff6efe48f1705058efc3bc82de /perl/local.mk
parentc0745a2531f67f741ea9a5472e523a28ddc02be7 (diff)
Fix perl build
Diffstat (limited to 'perl/local.mk')
-rw-r--r--perl/local.mk42
1 files changed, 19 insertions, 23 deletions
diff --git a/perl/local.mk b/perl/local.mk
index 1793ececfd60..35113bd960d2 100644
--- a/perl/local.mk
+++ b/perl/local.mk
@@ -10,38 +10,34 @@ nix_perl_modules := $(nix_perl_sources:.in=)
 
 $(foreach x, $(nix_perl_modules), $(eval $(call install-data-in, $(x), $(perllibdir)/Nix)))
 
-ifeq ($(perlbindings), yes)
-
-  lib/Nix/Store.cc: lib/Nix/Store.xs
+lib/Nix/Store.cc: lib/Nix/Store.xs
 	$(trace-gen) xsubpp $^ -output $@
 
-  libraries += Store
-
-  Store_DIR := lib/Nix
+libraries += Store
 
-  Store_SOURCES := $(Store_DIR)/Store.cc
+Store_DIR := lib/Nix
 
-  Store_CXXFLAGS = \
-    -I$(shell $(perl) -e 'use Config; print $$Config{archlibexp};')/CORE \
-    -D_FILE_OFFSET_BITS=64 \
-    -Wno-unknown-warning-option -Wno-unused-variable -Wno-literal-suffix \
-    -Wno-reserved-user-defined-literal -Wno-duplicate-decl-specifier -Wno-pointer-bool-conversion \
-    $(NIX_CFLAGS)
+Store_SOURCES := $(Store_DIR)/Store.cc
 
-  Store_LDFLAGS := $(SODIUM_LIBS) $(NIX_LIBS)
+Store_CXXFLAGS = \
+  -I$(shell $(perl) -e 'use Config; print $$Config{archlibexp};')/CORE \
+  -D_FILE_OFFSET_BITS=64 \
+  -Wno-unknown-warning-option -Wno-unused-variable -Wno-literal-suffix \
+  -Wno-reserved-user-defined-literal -Wno-duplicate-decl-specifier -Wno-pointer-bool-conversion \
+  $(NIX_CFLAGS)
 
-  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_LDFLAGS := $(SODIUM_LIBS) $(NIX_LIBS)
 
-  Store_ALLOW_UNDEFINED = 1
+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_FORCE_INSTALL = 1
+Store_ALLOW_UNDEFINED = 1
 
-  Store_INSTALL_DIR = $(perllibdir)/auto/Nix/Store
+Store_FORCE_INSTALL = 1
 
-endif
+Store_INSTALL_DIR = $(perllibdir)/auto/Nix/Store
 
 clean-files += lib/Nix/Config.pm lib/Nix/Store.cc Makefile.config