From 3fdbfee2c6b66a8b72514ed49bd350c11ef573fe Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 26 Mar 2018 14:51:29 -0700 Subject: use CXX_FOR_BUILD in makefile to build dictgen This is to permit crossbuilding. Patch from Helmut Grohne. --- makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 3b1b519..0957b06 100644 --- a/makefile +++ b/makefile @@ -5,6 +5,7 @@ CXXFLAGS ?= -O2 -Wall -Wextra CC ?= gcc AR ?= ar CXX ?= g++ +CXX_FOR_BUILD ?= $(CXX) # need zxcvbn.h prior to package installation CPPFLAGS += -I. @@ -57,7 +58,7 @@ dict-crc.h: dictgen $(WORDS) ./dictgen -b -o zxcvbn.dict -h dict-crc.h $(WORDS) dictgen: dict-generate.cpp makefile - $(CXX) $(CPPFLAGS) -std=c++11 $(CXXFLAGS) \ + $(CXX_FOR_BUILD) $(CPPFLAGS) -std=c++11 $(CXXFLAGS) \ -o dictgen dict-generate.cpp $(LDFLAGS) test-c++inline: test.c zxcvbn-c++inline.o -- cgit v1.2.3