aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2018-03-25 13:36:47 +0200
committerSean Whitton <spwhitton@spwhitton.name>2018-09-08 11:34:28 -0700
commitb976403f5c302ff65f4800eb932c26e11eea60e2 (patch)
tree9d2126a1af5fb1f03a0fc9a5aecd4dbeb4cd88b4
parent57e9ab639f40d5ba8a7bde59bb22f9f9accf6d36 (diff)
downloadzxcvbn-c-b976403f5c302ff65f4800eb932c26e11eea60e2.tar.gz
fix crossbuilding zxcvbn-c
Gbp-Pq: Name cross.patch
-rw-r--r--makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/makefile b/makefile
index 40c88f2..6223330 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.
@@ -61,7 +62,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