Fix perl build

This commit is contained in:
Eelco Dolstra 2017-03-31 15:31:34 +02:00
parent c0745a2531
commit d087700347
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
4 changed files with 22 additions and 29 deletions

View file

@ -1,6 +1,6 @@
makefiles = local.mk makefiles = local.mk
GLOBAL_CXXFLAGS += -std=c++11 -g -Wall GLOBAL_CXXFLAGS += -std=c++14 -g -Wall -include nix/config.h
-include Makefile.config -include Makefile.config

View file

@ -16,4 +16,3 @@ perl = @perl@
perllibdir = @perllibdir@ perllibdir = @perllibdir@
nixstoredir = @nixstoredir@ nixstoredir = @nixstoredir@
nixsysconfdir = @nixsysconfdir@ nixsysconfdir = @nixsysconfdir@
perlbindings = @perlbindings@

View file

@ -99,8 +99,6 @@ AC_SUBST(nixlocalstatedir)
AC_SUBST(nixsysconfdir) AC_SUBST(nixsysconfdir)
AC_SUBST(nixstoredir) AC_SUBST(nixstoredir)
AC_SUBST(perlbindings, "yes")
# Expand all variables in config.status. # Expand all variables in config.status.
test "$prefix" = NONE && prefix=$ac_default_prefix test "$prefix" = NONE && prefix=$ac_default_prefix
test "$exec_prefix" = NONE && exec_prefix='${prefix}' test "$exec_prefix" = NONE && exec_prefix='${prefix}'

View file

@ -10,8 +10,6 @@ nix_perl_modules := $(nix_perl_sources:.in=)
$(foreach x, $(nix_perl_modules), $(eval $(call install-data-in, $(x), $(perllibdir)/Nix))) $(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 $@ $(trace-gen) xsubpp $^ -output $@
@ -42,6 +40,4 @@ ifeq ($(perlbindings), yes)
Store_INSTALL_DIR = $(perllibdir)/auto/Nix/Store Store_INSTALL_DIR = $(perllibdir)/auto/Nix/Store
endif
clean-files += lib/Nix/Config.pm lib/Nix/Store.cc Makefile.config clean-files += lib/Nix/Config.pm lib/Nix/Store.cc Makefile.config